SnowConvert AI - Teradata¶
特定的 CLI 实参¶
The following CLI arguments are specific for executing migrations with SnowConvert AI for Teradata
--displaceDatabaseAsSchema¶
This flag must be used with the -s parameter. When used it will maintain Teradata's database name qualification as Snowflake's data warehouse, contrary to its default behavior where it becomes a schema on Snowflake code. Let's look at an example where -s customSchema is included:
--CharacterToApproximateNumber <NUMBER>¶
CHARACTER 转换为近似数的整数值(默认值:10)。
--DefaultDateFormat <STRING>¶
默认 DATE 格式的字符串值(默认值:"YYYY/MM/DD")。
--DefaultTimeFormat <STRING>¶
String value for the Default TIME format (Default: "HH:MI:SS.FF6").
--DefaultTimestampFormat <STRING>¶
String value for the Default TIMESTAMP format (Default: "YYYY/MM/DD HH:MI:SS.FF6").
--DefaultTimezoneFormat <STRING>¶
默认 TIMEZONE 格式的字符串值(默认值:"GMT-5")。
-p, --scriptTargetLanguage <TARGET_LANGUAGE> ¶
该字符串值指定了转换 Bteq 和 Mload 脚本文件所需的目标语言。目前支持的值是 SnowScript 和 Python。默认值设置为 Python。
-n, --SessionMode <SESSION_MODE> ¶
SnowConvert AI handles Teradata code in both TERA and ANSI modes. Currently, this is limited to the default case specification of character data and how it affects comparisons.
字符串值指定输入代码的会话模式。目前支持的值是 TERA 和 ANSI。默认值设置为 TERA。
You can learn more about how SnowConvert AI handles and converts code depending on the session mode, check here.
--replaceDeleteAllToTruncate¶
该标志用于指明是否必须使用 Truncate 替换“Delete All”语句。替换完成后,这将生成 SSC-EWI-TD0037。示例:
--splitPeriodDatatype¶
该标志用于表示该工具应将 PERIOD 数据类型的任何使用迁移为两个单独的 DATETIME 字段,用于分别保存原始时间段的开始值和结束值,每当使用此标志迁移时间段字段或函数时,都会添加 SSC-FDM-TD0004,以提示该项更改。
--arrange¶
该标志用于指示是否应在解析和转换前处理输入代码。
--RenamingFile¶
.json 文件的路径,该文件为某些对象(例如表、视图、过程、函数和宏)指定新名称。此参数不能与 customSchema 实参一起使用。导航到 重命名功能 以了解有关此实参的更多信息。
--UseCollateForCaseSpecification¶
This flag indicates whether to use COLLATE or UPPER to preserve Case Specification functionality, for example, CASESPECIFIC or NOT CASESPECIFIC. By default, it is turned off, meaning that the UPPER function will be used to emulate case insensitivity (NOT CASESPECIFIC). To learn more about how Case Specification is handled by SnowConvert AI check here.