MSCEWI2061
TD_UNPIVOT transformation requires column information that could not be found, columns missing in result
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Medium
Description
SnowConvert supports and transforms the TD_UNPIVOT function, which can be used to represent columns from a table as rows.
However, this transformation requires information about the table/tables columns to work, more specifically the names of the columns. When this information is not present the transformation may be left in an incomplete state where columns are missing from the result, this EWI is generated in these cases.
Example code
Input Code:
Output Code:
Recommendations
There are two ways of supplying the information about columns to the conversion tool: put the table specification in the same file as the TD_UNPIVOT call or specify a column list in the SELECT query of the ON expression instead of SELECT * or the table name.
This issue can be safely ignored if ALL the columns from the input table/tables are being unpivoted, otherwise, the result will have missing columns.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated