MSCEWI3095
Operation Between Interval Type and Date Type not Supported
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Medium
Description
INTERVAL YEAR TO MONTH
and INTERVAL DAY TO SECOND
are not a supported data type, they are transformed to VARCHAR(20)
. Therefore all arithmetic operations between Date Types and the original Interval Type Columns are not supported.
Furthermore, operations between an Interval Type and Date Type (in this order) are not supported in Snowflake; and these operations use this EWI as well.
Example Code
Input Code:
Output Code:
Recommendations
Implement the UDF to simulate the Oracle behavior.
Extract the already transformed value that was stored in the column during migration, and use it as a Snowflake Interval Constant when possible.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated