forked from apache/calcite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CALCITE-6340] RelBuilder always creates Project with Convention.NONE…
… during aggregate_ Propagate the trait set after pruning a projection under an aggregate in RelBuilder.
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2502,8 +2502,12 @@ private RelBuilder pruneAggregateInputFieldsAndDeduplicateAggCalls( | |
newProjects.add(project.getProjects().get(i)); | ||
builder.add(project.getRowType().getFieldList().get(i)); | ||
} | ||
final Convention convention = | ||
project.getConvention() != null ? project.getConvention() | ||
: cluster.traitSet().getConvention(); | ||
|
||
r = | ||
project.copy(cluster.traitSet(), project.getInput(), newProjects, | ||
project.copy(cluster.traitSet().replace(convention), project.getInput(), newProjects, | ||
Check failure on line 2510 in core/src/main/java/org/apache/calcite/tools/RelBuilder.java GitHub Actions / CheckerFramework (JDK 11)
Check failure on line 2510 in core/src/main/java/org/apache/calcite/tools/RelBuilder.java GitHub Actions / CheckerFramework (JDK 11), oldest Guava
|
||
builder.build()); | ||
} else { | ||
groupSetAfterPruning = groupSet; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters