Description
If I execute this SQL:
SELECT date '2008-12-31' + INTERVAL '1' YEAR
INTERVAL '1' YEAR is converted into INTERVAL '12' YEAR inside SqlNodeToRexConverterImpl.convertLiteral method, which forgets to change qualifier to MONTH.
Besides INTERVAL_YEAR_MONTH, there maybe other SqlTypeFamily have the same problem.
In addition, can we expose SqlNodeToRexConverter in SqlToRelConverter to let developer to plugin their own converter?
Attachments
Issue Links
- links to