In Drill with Calcite updated to 1.19.0 we observe following problem:
the following query
when Volcano planner is registering rel nodes. The initial plan is the following:
It contains two EnumerableTableScan operators with different row types specified in the error message above. In the scope of
CALCITE-2454 was removed rel data type from the key in the VolcanoPlanner.mapDigestToRel map.
To fix this, `TableScan` should include rowType item in AbstractRelNode#explainTerms(RelWriter) method because in case of dynamic tables there is the same digest for different operators. The same thing was done for Values operator and literals in conditions.