ygerzhedovich commented on code in PR #1982:
URL: https://github.com/apache/ignite-3/pull/1982#discussion_r1180463532
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/PlannerHelper.java:
##########
@@ -140,6 +139,14 @@ public static IgniteRel optimize(SqlNode sqlNode,
IgnitePlanner planner) {
}
}
+ private static boolean amountOfJoinsAreBig(RelNode rel) {
Review Comment:
done
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/util/Hints.java:
##########
@@ -0,0 +1,126 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.ignite.internal.sql.engine.util;
+
+import static org.apache.ignite.internal.util.CollectionUtils.nullOrEmpty;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Set;
+import java.util.StringJoiner;
+import java.util.stream.Collectors;
+import org.apache.calcite.rel.hint.RelHint;
+
+/**
+ * Enumeration of supported SQL hints together with help methods.
+ */
+public enum Hints {
+ //Only for test purpose!!! No any product use and not available for user
+ DISABLE_RULE(true),
+ //Disable commute joins and keeps the join order defined by the user in a
query
+ ENFORCE_JOIN_ORDER,
+ EXPAND_DISTINCT_AGG;
Review Comment:
thanks
##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/planner/AbstractPlannerTest.java:
##########
@@ -1318,4 +1344,48 @@ public Publisher<BinaryRow> lookup(int partId,
HybridTimestamp timestamp, Cluste
Predicate<SearchBounds> empty() {
return Objects::isNull;
}
+
+ /**
+ * Wrapper for RelOptListener with empty realization for each of their
methods. Good choice in case you need implement just one or few
+ * methods for listener.
+ */
+ static class RelOptListenerWrapper implements RelOptListener {
Review Comment:
ok
--
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]