[
https://issues.apache.org/jira/browse/IGNITE-24889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17987340#comment-17987340
]
Pavel Pereslegin commented on IGNITE-24889:
-------------------------------------------
[~mzhuravkov], please take a look at the proposed changes.
> Sql. Incorrect precision in interval arithmetic expression
> ----------------------------------------------------------
>
> Key: IGNITE-24889
> URL: https://issues.apache.org/jira/browse/IGNITE-24889
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Affects Versions: 3.0
> Reporter: Pavel Pereslegin
> Assignee: Pavel Pereslegin
> Priority: Major
> Labels: ignite-3
> Fix For: 3.1
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Reproducer
> {code:java}
> sql("CREATE TABLE t(t TIME(0) PRIMARY KEY)");
> sql("INSERT INTO T VALUES(TIME '00:00:00' + INTERVAL '1.1' SECOND)");
> assertQuery("SELECT t FROM t")
> // Expected: 00:00:01 <class java.time.LocalTime>
> // Actual: 00:00:01.100 <class java.time.LocalTime>
> .returns(LocalTime.parse("00:00:01"))
> .check();
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)