Package org.apache.calcite.plan
Class RelOptUtilTest
- java.lang.Object
-
- org.apache.calcite.plan.RelOptUtilTest
-
public class RelOptUtilTest extends java.lang.Object
Unit test forRelOptUtil
and other classes in this package.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.calcite.rel.type.RelDataType
DEPT_ROW
private static org.apache.calcite.rel.RelNode
DEPT_SCAN
private static java.util.List<org.apache.calcite.rel.type.RelDataTypeField>
EMP_DEPT_JOIN_REL_FIELDS
private static org.apache.calcite.rel.type.RelDataType
EMP_ROW
private static org.apache.calcite.rel.RelNode
EMP_SCAN
private static org.apache.calcite.tools.RelBuilder
REL_BUILDER
-
Constructor Summary
Constructors Constructor Description RelOptUtilTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static org.apache.calcite.tools.Frameworks.ConfigBuilder
config()
Creates a config based on the "scott" schema.private static void
splitJoinConditionHelper(org.apache.calcite.rex.RexNode joinCond, java.util.List<java.lang.Integer> expLeftKeys, java.util.List<java.lang.Integer> expRightKeys, java.util.List<java.lang.Boolean> expFilterNulls, org.apache.calcite.rex.RexNode expRemaining)
void
testRuleGuessDescription()
Tests the rules for how we name rules.void
testSplitJoinConditionEquals()
TestRelOptUtil.splitJoinCondition(RelNode, RelNode, RexNode, List, List, List)
where the join condition contains just one which is a EQUAL operator.void
testSplitJoinConditionExpandedIsNotDistinctFrom()
TestRelOptUtil.splitJoinCondition(RelNode, RelNode, RexNode, List, List, List)
where the join condition contains an expanded version of IS NOT DISTINCTvoid
testSplitJoinConditionIsNotDistinctFrom()
TestRelOptUtil.splitJoinCondition(RelNode, RelNode, RexNode, List, List, List)
where the join condition contains just one which is a IS NOT DISTINCT operator.void
testTypeDump()
-
-
-
Field Detail
-
REL_BUILDER
private static final org.apache.calcite.tools.RelBuilder REL_BUILDER
-
EMP_SCAN
private static final org.apache.calcite.rel.RelNode EMP_SCAN
-
DEPT_SCAN
private static final org.apache.calcite.rel.RelNode DEPT_SCAN
-
EMP_ROW
private static final org.apache.calcite.rel.type.RelDataType EMP_ROW
-
DEPT_ROW
private static final org.apache.calcite.rel.type.RelDataType DEPT_ROW
-
EMP_DEPT_JOIN_REL_FIELDS
private static final java.util.List<org.apache.calcite.rel.type.RelDataTypeField> EMP_DEPT_JOIN_REL_FIELDS
-
-
Method Detail
-
config
private static org.apache.calcite.tools.Frameworks.ConfigBuilder config()
Creates a config based on the "scott" schema.
-
testTypeDump
public void testTypeDump()
-
testRuleGuessDescription
public void testRuleGuessDescription()
Tests the rules for how we name rules.
-
testSplitJoinConditionEquals
public void testSplitJoinConditionEquals()
TestRelOptUtil.splitJoinCondition(RelNode, RelNode, RexNode, List, List, List)
where the join condition contains just one which is a EQUAL operator.
-
testSplitJoinConditionIsNotDistinctFrom
public void testSplitJoinConditionIsNotDistinctFrom()
TestRelOptUtil.splitJoinCondition(RelNode, RelNode, RexNode, List, List, List)
where the join condition contains just one which is a IS NOT DISTINCT operator.
-
testSplitJoinConditionExpandedIsNotDistinctFrom
public void testSplitJoinConditionExpandedIsNotDistinctFrom()
TestRelOptUtil.splitJoinCondition(RelNode, RelNode, RexNode, List, List, List)
where the join condition contains an expanded version of IS NOT DISTINCT
-
splitJoinConditionHelper
private static void splitJoinConditionHelper(org.apache.calcite.rex.RexNode joinCond, java.util.List<java.lang.Integer> expLeftKeys, java.util.List<java.lang.Integer> expRightKeys, java.util.List<java.lang.Boolean> expFilterNulls, org.apache.calcite.rex.RexNode expRemaining)
-
-