dinmukhamedm opened a new issue, #2390: URL: https://github.com/apache/datafusion-sqlparser-rs/issues/2390
When the `require_interval_qualifier` dialect option was added (https://github.com/apache/datafusion-sqlparser-rs/pull/1398), the main concern was PostgreSQL. Modern clickhouse supports all of: unquoted intervals ``` SELECT INTERVAL 1 DAY; ┌─toIntervalDay(1)─┐ 1. │ 1 │ └──────────────────┘ ``` quoted intervals ``` SELECT INTERVAL '1 d'; ┌─toIntervalDay(1)─┐ 1. │ 1 │ └──────────────────┘ ``` Mixed intervals ``` SELECT INTERVAL '1 2:3:4' DAY TO SECOND; ┌─(toIntervalDay(1), toIntervalHour(2), toIntervalMinute(3), toIntervalSecond(4))─┐ 1. │ (1,2,3,4) │ └─────────────────────────────────────────────────────────────────────────────────┘ ``` --- The fix should be as simple as flipping one boolean [here](https://github.com/apache/datafusion-sqlparser-rs/blob/bf1741bee2acb8013660de21d314533fe5686e93/src/dialect/clickhouse.rs#L47-L49) -- 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]
