[
https://issues.apache.org/jira/browse/CALCITE-7527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-7527.
----------------------------------
Fix Version/s: 1.42.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/f707ef4b7eef4bbb75163d336a6cc1e72e7ce673]
Thank you for the review [~xuzifu666]
> 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
> Fix For: 1.42.0
>
>
> 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)