Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
private boolean rowTypesAreEquivalent( MutableRel rel0, MutableRel rel1, Litmus litmus) { if (rel0.rowType.getFieldCount() != rel1.rowType.getFieldCount()) { return litmus.fail("Mismatch for column count: [{}]", Pair.of(rel0, rel1)); } for (Pair<RelDataTypeField, RelDataTypeField> pair : Pair.zip(rel0.rowType.getFieldList(), rel0.rowType.getFieldList())) { if (!pair.left.getType().equals(pair.right.getType())) { return litmus.fail("Mismatch for column type: [{}]", Pair.of(rel0, rel1)); } } return litmus.succeed(); }
Where
Pair.zip(rel0.rowType.getFieldList(), rel0.rowType.getFieldList())
should be
Pair.zip(rel0.rowType.getFieldList(), rel1.rowType.getFieldList())
Attachments
Issue Links
- relates to
-
CALCITE-3113 Equivalent MutableAggregates with different row types fail with AssertionError
- Closed
- links to