File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
core/src/main/java/org/apache/calcite Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ VERSION=1.39.0
3131
3232for module in linq4j core;
3333do
34- ./gradlew :${module} :clean :${module} :publishToMavenLocal
34+ ./gradlew :${module} :clean -x :core:javadoc :${module} :publishToMavenLocal
3535 mvn install:install-file \
3636 -Dfile=${module} /build/libs/calcite-${module} -$VERSION -SNAPSHOT.jar \
3737 -DgroupId=org.apache.calcite \
Original file line number Diff line number Diff line change 9191
9292import static java .util .Objects .requireNonNull ;
9393
94+ import static org .apache .calcite .runtime .Hook .AFTER_OPTIMIZATION ;
95+
9496/**
9597 * VolcanoPlanner optimizes queries by transforming expressions selectively
9698 * according to a dynamic programming algorithm.
@@ -533,6 +535,7 @@ protected void registerMaterializations() {
533535 LOGGER .info (sw .toString ());
534536 }
535537 dumpRuleAttemptsInfo ();
538+ AFTER_OPTIMIZATION .run (root );
536539 RelNode cheapest = root .buildCheapestPlan (this );
537540 if (LOGGER .isDebugEnabled ()) {
538541 LOGGER .debug (
Original file line number Diff line number Diff line change @@ -88,6 +88,9 @@ public enum Hook {
8888 /** Called to create a Program to optimize the statement. */
8989 PROGRAM ,
9090
91+ /** Called to create a Program to optimize the statement. */
92+ AFTER_OPTIMIZATION ,
93+
9194 /** Called when materialization is created. */
9295 CREATE_MATERIALIZATION ,
9396
You can’t perform that action at this time.
0 commit comments