Interval Type and Date Type
Operation Between Interval Type and Date Type not Supported
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 Oracle:
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
Related EWIS
SSC-EWI-0036: Data type converted to another data type.
SSC-EWI-OR0095: Operation Between Interval Type and Date Type not Supported.
SSC-FDM-OR0042: Date Type Transformed To Timestamp Has A Different Behavior.
Last updated