SnowConvert AI - Redshift¶
What is SnowConvert AI for Redshift?¶
SnowConvert AI is a software that understands SQL Redshift scripts and converts this source code into functionally equivalent Snowflake code.
変換タイプ¶
Specifically, SnowConvert AI for Redshift performs the following conversions:
RedshiftからSnowflake SQL へ¶
SnowConvert AI recognizes the Redshift source code and converts the different statements into the appropriate SQL for the Snowflake target.
サンプルコード¶
入力コード¶
CREATE TABLE table1 (
col1 INTEGER GENERATED BY DEFAULT AS IDENTITY(1,1)
);
出力コード¶
CREATE TABLE table1 (
col1 INTEGER IDENTITY(1,1) ORDER
)
COMMENT = '{ "origin": "sf_sc", "name": "snowconvert", "version": { "major": 0, "minor": 0, "patch": "0" }, "attributes": { "component": "redshift", "convertedOn": "09/17/2024" }}'
;
ご覧のように、ほとんどの構造は変わりませんが、いくつかの列のプロパティはSnowflakeに相当するものに変換する必要があります。詳細情報については、 Redshift翻訳参照ドキュメント をご参照ください。
SnowConvert AI Terminology¶
これらのコード変換のマジックに没頭する前に、ここで用語/定義のいくつかを紹介し、さまざまなドキュメントでこれらが使用されるときにその意味が分かるようにしておきます。
SQL (構造化クエリ言語): 大半の現代的なデータベースアーキテクチャーにおけるデータの保存、操作、検索のための標準言語。
SnowConvert AI: the software that converts securely and automatically your Redshift files to the Snowflake cloud data platform.
Conversion rule or transformation rule: rules that allow SnowConvert AI to convert from a portion of source code to the expected target code.
Parse: parse or parsing is an initial process done by SnowConvert AI to understand the source code and build up an internal data structure required for executing the conversion rules.
In the next few pages, you'll learn more about the kind of conversions that SnowConvert AI for Redshift is capable of. If you're ready to get started, visit the Getting Started page in this documentation.