You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Zhuravkov (Jira)" <ji...@apache.org> on 2024/10/23 09:53:00 UTC
[jira] [Updated] (IGNITE-23523) Sql. Incorrect time formatting in sql logic tests causes test failures
[ https://issues.apache.org/jira/browse/IGNITE-23523?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maksim Zhuravkov updated IGNITE-23523:
--------------------------------------
Summary: Sql. Incorrect time formatting in sql logic tests causes test failures (was: Sql. Incorrect time formatting in sql logic test causes test failures)
> Sql. Incorrect time formatting in sql logic tests causes test failures
> ----------------------------------------------------------------------
>
> Key: IGNITE-23523
> URL: https://issues.apache.org/jira/browse/IGNITE-23523
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Maksim Zhuravkov
> Priority: Major
> Labels: ignite-3
>
> The following test case fails despite its result is correct
> {code:java}
> SELECT TIME '10:00:00' + INTERVAL '1' DAY
> java.lang.AssertionError: Not expected result at: (test_interval_addition.test_ignore:210). [row=0, col=0, expected=10:00:00, actual=10:00]
> {code}
> Explanation:
> {noformat}
> jshell> import java.time.LocalTime;
> jshell> String.valueOf(LocalTime.of(10, 0, 0))
> $4 ==> "10:00"
> {noformat}
> We should update formatting for time and date time so it does not lose zeros in seconds.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)