Description
CALCITE-1812 introduced the following line in validate method in VolcanoPlanner:
final RelMetadataQuery mq = root.getCluster().getMetadataQuery();
validate might be called as part of the setRoot logic before root is set, thus we are hitting a NPE. Workaround was easy as validate is only called in logging DEBUG level (I guess that is why we did not see this issue before), but this JIRA will fix the issue by retrieving the RelMetadataQuery in validate only when needed.
Attachments
Issue Links
- is duplicated by
-
CALCITE-1952 Apache Calcite 1.13.0 produced null pointer exception compared to 1.12.0
- Closed