rubenada commented on code in PR #2786:
URL: https://github.com/apache/calcite/pull/2786#discussion_r863659870
##########
core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableMergeUnionRule.java:
##########
@@ -90,9 +96,42 @@ public EnumerableMergeUnionRule(Config config) {
}
}
+ final RelBuilder builder = call.builder();
final List<RelNode> inputs = new ArrayList<>(unionInputsSize);
for (RelNode input : union.getInputs()) {
- final RelNode newInput = sort.copy(sort.getTraitSet(), input, collation,
null, inputFetch);
+ // Check if type collations match, otherwise store it in this map to
generate a cast later
+ // to guarantee that all inputs will be sorted in the same way
+ final Map<Integer, RelDataType> castMap = new HashMap<>();
Review Comment:
ok, done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]