[ 
https://issues.apache.org/jira/browse/CALCITE-7678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18101504#comment-18101504
 ] 

Mihai Budiu commented on CALCITE-7678:
--------------------------------------

I personally think that some of the Postgres' choices are a mistake; this 
business about "syntactic context" makes programs not composable.

If ROW(NULL) = ROW(NULL) evaluates to UNKNOWN, so should ROW(ROW(NULL)) = 
ROW(ROW(NULL)). Moreover, the SQL standard agrees with this claim. I am 
currently finalizing a PR which will agree with the standard in this respect.

> Runtime equality for ROW values produces incorrect results
> ----------------------------------------------------------
>
>                 Key: CALCITE-7678
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7678
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.42.0
>            Reporter: Mihai Budiu
>            Priority: Minor
>
> GROUP BY, DISTINCT, JOIN, UNION, etc by ROW-typed values produces incorrect 
> results, because ROWs are compiled to Object[] and are compared by reference 
> instead of being compared by value.



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

Reply via email to