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

Pavel Pereslegin updated IGNITE-24889:
--------------------------------------
    Fix Version/s: 3.1

> 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
>
> 1. Literal with interval arithmetic
> {code:java}
>     assertQuery("SELECT TIMESTAMP '2021-01-01 00:00:00.1' + INTERVAL '0.001' 
> SECOND")
> //          org.opentest4j.AssertionFailedError: precision ==> 
> //           Expected :3
> //           Actual   :1
>             .columnMetadata(new 
> MetadataMatcher().type(ColumnType.DATETIME).precision(3))
>             .returns(LocalDateTime.of(2021, Month.JANUARY, 01, 00, 00, 00, 
> 101000000))
>             .check();
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to