You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by al...@apache.org on 2022/01/25 17:31:44 UTC
[ignite] branch sql-calcite updated: IGNITE-16217 Fix after merge
This is an automated email from the ASF dual-hosted git repository.
alexpl pushed a commit to branch sql-calcite
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/sql-calcite by this push:
new 4a41b08 IGNITE-16217 Fix after merge
4a41b08 is described below
commit 4a41b08aa99a27a079a1d77d617be09617f61ba2
Author: Aleksey Plekhanov <pl...@gmail.com>
AuthorDate: Tue Jan 25 20:27:07 2022 +0300
IGNITE-16217 Fix after merge
---
.../processors/query/calcite/rule/logical/LogicalOrToUnionRule.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rule/logical/LogicalOrToUnionRule.java b/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rule/logical/LogicalOrToUnionRule.java
index fe7b40ce..f6a145e 100644
--- a/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rule/logical/LogicalOrToUnionRule.java
+++ b/modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rule/logical/LogicalOrToUnionRule.java
@@ -42,11 +42,13 @@ import org.apache.ignite.internal.processors.query.calcite.schema.IgniteTable;
import org.apache.ignite.internal.processors.query.calcite.type.IgniteTypeFactory;
import org.apache.ignite.internal.processors.query.calcite.util.Commons;
import org.apache.ignite.internal.util.typedef.F;
+import org.immutables.value.Value;
import org.jetbrains.annotations.Nullable;
/**
* Converts OR to UNION ALL.
*/
+@Value.Enclosing
public class LogicalOrToUnionRule extends RelRule<LogicalOrToUnionRule.Config> {
/** Rule instance to replace table scans with condition. */
public static final RelOptRule INSTANCE = new LogicalOrToUnionRule(Config.SCAN);
@@ -190,7 +192,8 @@ public class LogicalOrToUnionRule extends RelRule<LogicalOrToUnionRule.Config> {
/** */
@SuppressWarnings("ClassNameSameAsAncestorName")
- public interface Config extends RelRule.Config {
+ @Value.Immutable(singleton = false)
+ public interface Config extends RuleFactoryConfig<Config> {
/** */
Config SCAN = ImmutableLogicalOrToUnionRule.Config.builder()
.withRuleFactory(LogicalOrToUnionRule::new)