Teradata SQL Migration
Teradata parameters are used to configure rules for Teradata script migration.
|
Parameter |
Description |
Value Range |
Default Value |
Example |
||
|---|---|---|---|---|---|---|
|
Rule for migrating DELETE statements without a WHERE clause. true: DELETE can be migrated to TRUNCATE. false: Do not change DELETE to TRUNCATE. |
|
false |
deleteToTruncate=true |
||
|
Which columns specified in the primary index will be used for data distribution across nodes in the cluster. one: Data is distributed based on the first column specified in the primary index. many: Data is distributed based on all the columns specified in the primary index. This function is addressed by using the DISTRIBUTE BY clause.
NOTE:
This parameter is set to one in V100R002C60 because this version does not support multiple columns in the DISTRIBUTE BY clause. |
|
many |
distributeByHash =many |
||
|
Whether to migrate GROUP BY (grouping sets/cube/rollup). true: GROUP BY() can be migrated. false: GROUP BY() cannot be migrated. |
|
false |
extendedGroupByClause=false |
||
|
Whether to enable query optimization from IN/NOT IN to EXISTS/NOT EXISTS. |
|
false |
inToExists=false |
||
|
Whether to convert a row-store table to a column-store table. true: All row-store tables will be converted to column-store tables during the script migration. |
|
false |
rowstoreToColumnstore=false |
||
|
Default table type (SET/MULTISET) when CREATE TABLE is executed. Teradata: The default table type is SET. ANSI: The default table type is MULTISET. |
|
Teradata |
session_mode=ANSI |
||
|
Whether to enable ALIAS migration. true: The ALIAS migration is enabled. false: The ALIAS migration is disabled. |
|
false |
tdMigrateALIAS=true |
||
|
Whether to migrate static objects whose names start with $(dollar symbol). This parameter is not applicable to dynamic objects, in format of ${}. true: The object names starting with $are enclosed in double quotation marks (""). false: The objects whose names start with $are directly migrated.
NOTE:
For details, see Migration of Object Names Starting with $. |
|
true |
tdMigrateDOLLAR=true |
||
|
Whether to migrate queries with the LOCK keyword. true: Such queries are migrated and their LOCK functions are commented out (from LOCK to ACCESS). false: Such queries are not migrated. DSC skips such queries and logs the following information:
NOTE:
For details, see ACCESS LOCK. |
|
false |
tdMigrateLOCKoption=true |
||
|
Whether to migrate NULLIFZERO(). true: NULLIFZERO() is migrated. false: NULLIFZERO() is not migrated. |
|
true |
tdMigrateNullIFZero=true |
||
|
Whether to migrate views containing CHECK OPTION. true: Such views are commented out during migration. false: Such views are not migrated. The tool copies the queries as they are and logs the following information:
|
|
false |
tdMigrateVIEWCHECKOPTION=true |
||
|
Whether to migrate ZEROIFNULL. true: ZEROIFNULL() is migrated. false: ZEROIFNULL() is not migrated. |
|
true |
tdMigrateZEROIFNULL=true |
||
|
Type of tables whose data is specific to a session and is stored only for the session. When the session ends, the data and tables are deleted. A volatile table can be a table migration table or an unlogged table.
NOTE:
unlogged is supported in V100R002C60 and local temporary is not. |
|
local temporary |
volatile=unlogged |
||
|
Whether to migrate CHARACTER SET and CASESPECIFIC. true: CHARACTER SET and CASESPECIFIC are commented out during script migration. false: CHARACTER SET and CASESPECIFIC are not migrated. In this case, DSC copies queries as they are and records the following information in the error log file, including query details (such as the file name and statement location):
|
|
false |
tdMigrateCharsetCase=false
NOTE:
If tdminatecharsetcase is set to true, the special keyword of the character is commented out. |
||
|
Whether the Teradata command line tool can be migrated. The value can be:
|
|
true |
terdataUtilities=true |
||
|
Whether unique indexes can be created for column-store tables. |
|
true |
unique_primary_index_in_column_table=true |
||
|
Whether default_charset can be migrated. The value can be:
|
|
LATIN |
default_charset=LATIN |
||
|
Merge type. You can:
The value can be:
|
|
None |
mergeImplementation=None |
||
|
Whether dsql is supported. The value can be:
|
|
false |
dsqlSupport=false |
||
|
Whether to remove column names that contain double quotes during migration. The value can be:
|
|
false |
tdcolumnInSensitive=false |
||
|
Migration mode of the CASE_N for partitioning. Gauss does not support multilevel (nested) partitioning. The value can be:
|
|
comment |
tdMigrateCASE_N=comment |
||
|
Migration mode of the RANGE_N for partitioning. Gauss does not support multilevel (nested) partitioning. The value can be:
|
|
range |
tdMigrateRANGE_N=range |
||
|
Whether addMonth can be migrated. The value can be:
If this parameter is set to true, ADD_MONTHS changes into mig_td_ext.ADD_MONTHS (added mig_td_ext) after the migration. Otherwise, migration is not supported. |
|
false |
tdMigrateAddMonth=false |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot