Teradata
Specific CLI arguments
The following CLI arguments are specific for executing migrations with SnowConvert for Teradata
--displaceDatabaseAsSchema
--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 it's default behavior where it becomes a schema on Snowflake code. Let's look and example where -s customSchema
is included:
--CharacterToApproximateNumber <NUMBER>
--CharacterToApproximateNumber <NUMBER>
An integer value for the CHARACTER to Approximate Number transformation (Default: 10
).
--DefaultDateFormat <STRING>
--DefaultDateFormat <STRING>
String value for the Default DATE format (Default: "YYYY/MM/DD"
).
--DefaultTimeFormat <STRING>
--DefaultTimeFormat <STRING>
String value for the Default TIME format (Default: "HH:MI:SS"
).
--DefaultTimestampFormat <STRING>
--DefaultTimestampFormat <STRING>
String value for the Default TIMESTAMP format (Default: "YYYY/MM/DD HH:MI:SS"
).
--DefaultTimezoneFormat <STRING>
--DefaultTimezoneFormat <STRING>
String value for the Default TIMEZONE format (Default: "GMT-5"
).
-p, --scriptTargetLanguage <TARGET_LANGUAGE>
-p, --scriptTargetLanguage <TARGET_LANGUAGE>
The string value specifies the target language to convert Bteq and Mload script files. Currently supported values are SnowScript and Python. The default value is set to Python.
--replaceDeleteAllToTruncate
--replaceDeleteAllToTruncate
Flag to indicate whether Delete All statements must be replaced with Truncate or not. This will generate SSC-EWI-TD0037 when the replacement is done. Example:
--generateStoredProcedureTags
--generateStoredProcedureTags
Flag to indicate whether the SQL statements SELECT, INSERT, CREATE, DELETE, UPDATE, DROP, MERGE in Stored Procedures will be tagged on the converted code. This feature is used for easy statement identification on the migrated code. Wrapping these statements within these XML-like tags allows for other programs to quickly find and extract them. The decorated code looks like this:
--splitPeriodDatatype
--splitPeriodDatatype
This flag is used to indicate that the tool should migrate any use of the PERIOD
datatype as two separate DATETIME
fields that will hold the original period begin and end values, anytime a period field or function is migrated using this flag SSC-FDM-TD0004 will be added to warn about this change.
--arrange
--arrange
Flag to indicate whether the input code should be processed before parsing and transformation.
--RenamingFile
--RenamingFile
The path to a .json file that specifies new names for certain objects such as Tables, Views, Procedures, Functions, and Macros. This parameter can't be used with the customSchema
argument. Navigate to the Renaming Feature to learn more about this argument.
Last updated