moshap-firebolt opened a new pull request, #2616:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2616

   Spark's [multi-units interval 
syntax](https://spark.apache.org/docs/latest/sql-ref-literals.html#interval-literal)
 lists several value / unit pairs, `INTERVAL 10 YEAR 20 MONTH`, documented as 
equivalent to `INTERVAL '10 YEAR 20 MONTH'`.
   
   This adds `Dialect::supports_interval_multi_units`, enabled for 
`SparkSqlDialect` and `DatabricksDialect`. When set, `parse_interval` reads the 
extra pairs into that string form, so the AST is unchanged. A single unit, or a 
unit followed by something else (`INTERVAL 3 DAY + 1`), parses as before. Tests 
in `sqlparser_common.rs` cover dialects with and without the hook.
   
   Note: `parse_tuple_element_access` fails on current `main` as well, 
independent of this change.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to