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

Mihai Budiu resolved CALCITE-6662.
----------------------------------
    Fix Version/s: 1.39.0
       Resolution: Fixed

Fixed in 
https://github.com/apache/calcite/commit/39652ff0a06e3b5dc6faa1d3b1807a829f39a7cc
Thank you for the contribution, [~oliverlee]

> RelJson.rangePointFromJson cannot create Double numerics
> --------------------------------------------------------
>
>                 Key: CALCITE-6662
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6662
>             Project: Calcite
>          Issue Type: Task
>            Reporter: Oliver Lee
>            Assignee: Oliver Lee
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.39.0
>
>
> Following CALCITE-2067, RexLiteral has more accurate validation between using 
> exact numerics vs approximate numerics to create RexLiterals. 
> [RelJson.rangeEndPointFromJson|https://github.com/apache/calcite/blob/2e99d5118efbba21c87e7da08b8359ce296e138d/core/src/main/java/org/apache/calcite/rel/externalize/RelJson.java#L940]
>  however only creates all numerics using BigDecimal, and this causes errors 
> to be thrown when deserializing rel jsons  
> [here|https://github.com/apache/calcite/blob/2e99d5118efbba21c87e7da08b8359ce296e138d/core/src/main/java/org/apache/calcite/rex/RexLiteral.java#L234].
>  
>  



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

Reply via email to