Skip to content

Commit 040d7cd

Browse files
committed
fix(EXPB-9498): ClassCastException: class RelCompositeTrait cannot be cast to class RelCollation
1 parent d66bb3b commit 040d7cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableMergeUnion.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.apache.calcite.linq4j.tree.Expressions;
2323
import org.apache.calcite.linq4j.tree.ParameterExpression;
2424
import org.apache.calcite.plan.RelOptCluster;
25+
import org.apache.calcite.plan.RelTrait;
2526
import org.apache.calcite.plan.RelTraitSet;
2627
import org.apache.calcite.rel.RelCollation;
2728
import org.apache.calcite.rel.RelNode;
@@ -47,7 +48,7 @@ protected EnumerableMergeUnion(RelOptCluster cluster, RelTraitSet traitSet,
4748
throw new IllegalArgumentException("EnumerableMergeUnion with no collation");
4849
}
4950
for (RelNode input : inputs) {
50-
final RelCollation inputCollation = input.getTraitSet().getCollation();
51+
final RelTrait inputCollation = input.getTraitSet().getCollation();
5152
if (inputCollation == null || !inputCollation.satisfies(collation)) {
5253
throw new IllegalArgumentException("EnumerableMergeUnion input does "
5354
+ "not satisfy collation. EnumerableMergeUnion collation: "

0 commit comments

Comments
 (0)