[ 
https://issues.apache.org/jira/browse/CALCITE-7527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated CALCITE-7527:
------------------------------------
    Labels: pull-request-available  (was: )

> SqlParserUtil.parseTimestampTzLiteral does not validate timezone
> ----------------------------------------------------------------
>
>                 Key: CALCITE-7527
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7527
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>
> parseTimestampTzLiteral relies on Java's time zone validation, which is 
> notoriously weak.
> A literal such as 2020-06-21 14:23:44.123654+00:00 (which is incorrect) will 
> be interpreted as 2020-06-21 00:00:00, because the entire string 
> 14:23:44.123654+00:00 is parsed as a timezone.
> Instead this literal should be rejected. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to