[
https://issues.apache.org/jira/browse/CALCITE-7370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18051699#comment-18051699
]
Yu Xu commented on CALCITE-7370:
--------------------------------
Fixed in
[9f575b3|https://github.com/apache/calcite/commit/9f575b39a0a57ee643f78210eff7edd208ffe62f]
Thank you for the fix [~ehds]
Thank you for the review [~rubenql] [~jensen]
> Trailing dot is not removed when normalizing timestamp strings
> --------------------------------------------------------------
>
> Key: CALCITE-7370
> URL: https://issues.apache.org/jira/browse/CALCITE-7370
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: DeepSink He
> Priority: Minor
> Labels: pull-request-available
>
> Trailing dot was not removed when remove trailing zeros of timestamp string.
> {code:java}
> new Timestamp("2026-01-01 00:00:00.000"){code}
> would cause IllegalArgumentException.
> After removing trailing zeros, the timestamp string become “2026-01-01
> 00:00:00.” which not matches with TimestampString.PATTERN
--
This message was sent by Atlassian Jira
(v8.20.10#820010)