[ 
https://issues.apache.org/jira/browse/CALCITE-5027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499837#comment-17499837
 ] 

Julian Hyde commented on CALCITE-5027:
--------------------------------------

Agree, this is a bug. It would be useful to see a SQL fragment that returns the 
wrong result. Maybe involving the EXTRACT function. Also check that DATE 
literals don't have the same problem.

> Incorrect format for timestamp literals
> ---------------------------------------
>
>                 Key: CALCITE-5027
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5027
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: Gregory Hart
>            Priority: Major
>
> The SqlDialect#quoteTimestampLiteral method uses the wrong format for 
> standard SQL. Instead of "day of month" it uses "day of year", and instead of 
> seconds is uses milliseconds. To fix this method, the format should be 
> changed to: 
> yyyy-MM-dd HH:mm:ss



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to