[
https://issues.apache.org/jira/browse/CALCITE-7952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149415#comment-18149415
]
Julian Hyde commented on CALCITE-7952:
--------------------------------------
You are making some assumptions about how {{deepEquals}} and {{deepHashCode}}
are used. How does this alleged bug manifest to Calcite users? Maybe Calcite
should adopt a policy of normalizing {{BigDecimal}} values. I'm not saying it
should, but let's make our assumptions explicit here.
> Functions.deepEquals and Functions.deepHashCode should ignore BigDecimal scale
> ------------------------------------------------------------------------------
>
> Key: CALCITE-7952
> URL: https://issues.apache.org/jira/browse/CALCITE-7952
> Project: Calcite
> Issue Type: Bug
> Affects Versions: 1.42.0
> Reporter: Kirill Tkalenko
> Assignee: Kirill Tkalenko
> Priority: Major
> Labels: pull-request-available
>
> {{Functions.deepEquals}} treats numerically equal {{BigDecimal}} values such
> as {{1.0}} and {{1.00}} as different, and {{Functions.deepHashCode}} can
> assign them different hashes. Deep equality should compare decimal values
> numerically and produce identical hashes for equal values, including when
> they appear inside arrays, lists, or maps.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)