[
https://issues.apache.org/jira/browse/IMPALA-4908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pooja Nilangekar resolved IMPALA-4908.
--------------------------------------
Resolution: Fixed
Fix Version/s: Impala 3.1.0
IMPALA-4908: NULL floats don't compare equal to other NULL floats
This change ensures that comparing two NULL floats with different
val fields returns true. Although this is undefined behavior, it
is now consistent with other types.
Along with the change, a unit test was added to ensure that
equality checking of floats returns results as expected.
Change-Id: Ie7310645e5752d8203be5abc22a6562a59b6e975
Reviewed-on: http://gerrit.cloudera.org:8080/10707
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> NULL floats don't compare equal to other NULL floats
> ----------------------------------------------------
>
> Key: IMPALA-4908
> URL: https://issues.apache.org/jira/browse/IMPALA-4908
> Project: IMPALA
> Issue Type: Bug
> Components: Backend
> Affects Versions: Impala 2.9.0
> Reporter: Zachary
> Assignee: Pooja Nilangekar
> Priority: Trivial
> Fix For: Impala 3.1.0
>
>
> FloatVals which are NULL only compare equal to other FloatVals if the float
> val also matches?
> It's already undefined behavior, but it would be nice to be consistent with
> other types. From the code:
>
> bool operator==(const FloatVal& other) const {
> return is_null == other.is_null && val == other.val;
> }
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)