You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zoltan Haindrich (Jira)" <ji...@apache.org> on 2021/11/29 15:26:00 UTC
[jira] [Commented] (HIVE-25748) Investigate Union comparision
[ https://issues.apache.org/jira/browse/HIVE-25748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17450528#comment-17450528 ]
Zoltan Haindrich commented on HIVE-25748:
-----------------------------------------
it seems like the comparision ignores the unused/dormant parts which could be ok; but it seems like it also compares the idx field - I think it should either also ignore the idx field or also consider the dormant objects
> Investigate Union comparision
> -----------------------------
>
> Key: HIVE-25748
> URL: https://issues.apache.org/jira/browse/HIVE-25748
> Project: Hive
> Issue Type: Improvement
> Reporter: Zoltan Haindrich
> Priority: Major
>
> both of the following cases change the "non-used" part of the union (note: `create_union(idx,o0,o1)` creates a union which uses the `idx`-th object)
> {code}
> SELECT (NULLIF(create_union(0,1,2),create_union(0,1,3)) is not null);
> false
> SELECT (NULLIF(create_union(0,1,2),create_union(1,2,1)) is not null);
> true
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)