Interval
Interval data type
The Interval type is transformed to Varchar(21) because there is no direct equivalence in Snowflake
Grammar Syntax
INTERVAL <interval qualifier>
<interval qualifier>:
<startField> TO <endField>
| <singleDateTimeField>
<startField>:
<nonSecondPrimaryDateTimeField> [ (precision) ]
<endField>:
<nonSecondPrimaryDateTimeField>
| SECOND [ (precision) ]
<singleDateTimeField>:
<nonSecondPrimaryDateTimeField> [ (precision) ]
| SECOND [ (precision [, precision2] ) ]
<nonSecondPrimaryDateTimeField>:
YEAR
| MONTH
| DAY
| HOUR
| MINUTEUses of the Interval type columns are going to be punished in the conversion rate, but we plan to deliver a better translation for the interval type.
Sample Source Patterns
ANSI SQL Input Code
Snowflake Output Code
Related EWIs
MSCEWI1037: Translation planned for the future.
Last updated
Was this helpful?