Description
Modify AstBuilder.visitInterval to parse year-month interval literals to tightest types. For example:
INTERVAL '10' YEAR should be parsed as YearMonthIntervalType(YEAR, YEAR) but not as YearMonthIntervalType(YEAR, MONTH).
Attachments
Issue Links
- duplicates
-
SPARK-35076 Parse interval literals as ANSI intervals
- Resolved
- is a clone of
-
SPARK-35737 Parse day-time interval literals to tightest types
- Resolved
- is blocked by
-
SPARK-35680 Support fields by year-month interval type
- Resolved
-
SPARK-35704 Support fields by the day-time interval type
- Resolved
- links to