You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "DeepSink He (Jira)" <ji...@apache.org> on 2026/01/13 11:36:00 UTC

[jira] [Updated] (CALCITE-7370) Trailing dot was not removed when normalize timestamp string.

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

DeepSink He updated CALCITE-7370:
---------------------------------
    Description: 
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

  was:
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


> Trailing dot was not removed when normalize timestamp string.
> -------------------------------------------------------------
>
>                 Key: CALCITE-7370
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7370
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: DeepSink He
>            Priority: Minor
>
> 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)