Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0
Description
Accoring to "RelMetadataQuery.collations()" javadoc, the method can return "null" if collactions information are not available.
Hive invokes the method in two places (RelFieldTrimmer and HiveJoin), but it does not check for "null" return values, which can cause NPE.
For RelFieldTrimmer, the same bug has been fixed in Calcite (where the code has been taken from) here: https://github.com/apache/calcite/commit/47871235177a3a0d398b1d890d1d2e947028e052
Attachments
Issue Links
- links to