korlov42 commented on code in PR #4151:
URL: https://github.com/apache/ignite-3/pull/4151#discussion_r1722938316
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/pruning/PartitionPruningMetadataExtractor.java:
##########
@@ -156,57 +156,99 @@ public IgniteRel visit(IgniteTableScan rel) {
}
private static class ModifyNodeShuttle extends IgniteRelShuttle {
- List<RexNode> projections = null;
- List<List<RexNode>> expressions = null;
- boolean unionRaised = false;
+ List<TargetMapping> mapping;
IgniteRel previous = null;
private static final Map<Class<?>, Set<Class<?>>> allowRelTransfers =
new HashMap<>();
+ List<List<RexNode>> finalExpressions = new ArrayList<>();
+ IgniteTable table;
+
+ List<List<RexNode>> prevProjects = new ArrayList<>();
+
+ ModifyNodeShuttle(IgniteTable table) {
+ this.table = table;
+ }
+
static {
allowRelTransfers.put(IgniteValues.class,
Set.of(IgniteProject.class, IgniteExchange.class, IgniteTrimExchange.class));
Review Comment:
`TEST("t SELECT x, x * 2, x * 3 FROM (SELECT 1 as x UNION ALL SELECT 2 as
x)", TABLE_C1_C2_NULLABLE_C3)`
test case above failed with `IndexOutOfBoundsException: Index 1 out of
bounds for length 1`
--
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]