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 (Structured Query Language): 大多数现代数据库架构中用于存储、操作和检索数据的标准语言。
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.