USING REQUEST MODIFIER
Translation specification for the USING REQUEST MODIFIER query.
Last updated
Translation specification for the USING REQUEST MODIFIER query.
Last updated
Some parts in the output code are omitted for clarity reasons.
As per Teradata's documentation, the USING REQUEST MODIFIER defines one or more variable parameter names to be used in the subsequent SELECT
, INSERT
, UPDATE
, or DELETE
statements to import or export data.
The syntax for this statement is as follows:
As stated in Teradata's documentation, the USING REQUEST MODIFIER needs to be preceded by an .IMPORT statement for it to load the data into the defined parameters.
Thus, the transformation for this statement follows these steps:
Call the import_file()
function from the SnowConvert Helpers. This loads the data into a temporary file.
Call the using()
function from the SnowConvert Helpers to create a dictionary with the loaded data.
For each query, run the exec()
function from the SnowConvert Helpers and pass the previously defined dictionary. This will use Snowflake Python Connector data binding capabilities.
With this input data:
Teradata (MultiLoad)
Snowflake (Python)
1. .REPEAT command is not yet supported
The .REPEAT
command is not yet supported. This means that the USING REQUEST MODIFIER will only use the data loaded from the first row of the input file. Thus, the queries will only run once.
This issue should be fixed when the .REPEAT command receives proper transformation support.
If you have any additional questions regarding this documentation, you can email us at snowconvert-support@snowflake.com.
No related EWIs.
ROW | C1 | C2 |
---|---|---|
1
A
X
2
B
Y
3
C
Z
1
A
X
2
B
Y
3
C
Z