okumin commented on PR #5207:
URL: https://github.com/apache/hive/pull/5207#issuecomment-2069077296

   I attached a remote debugger and found `RelMetadataQuery#areColumnsUnique` 
invoked recursively against nested RelNodes. `RelMdColumnUniqueness` has many 
paths returning `null,` so I think adding null checks like this PR seems valid.
   - 
https://github.com/apache/calcite/blob/main/core/src/main/java/org/apache/calcite/rel/metadata/RelMdColumnUniqueness.java
   - 
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/stats/HiveRelMdColumnUniqueness.java
   
   I will follow zabetak's comments and update the PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to