Package org.apache.calcite.test
Class SqlOperatorBindingTest
- java.lang.Object
-
- org.apache.calcite.test.SqlOperatorBindingTest
-
public class SqlOperatorBindingTest extends java.lang.Object
Unit tests forRexProgram
andRexProgramBuilder
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.calcite.rel.type.RelDataType
integerDataType
private org.apache.calcite.sql.SqlDataTypeSpec
integerType
private org.apache.calcite.rex.RexBuilder
rexBuilder
-
Constructor Summary
Constructors Constructor Description SqlOperatorBindingTest()
Creates a SqlOperatorBindingTest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testRexNodeLiteral()
TestsRexUtil.isLiteral(RexNode, boolean)
, which was added to enhance Calcite's public API [CALCITE-1219] Add a method to SqlOperatorBinding to determine whether operand is a literal.void
testSqlNodeLiteral()
TestsSqlUtil.isLiteral(SqlNode, boolean)
, which was added to enhance Calcite's public API [CALCITE-1219] Add a method to SqlOperatorBinding to determine whether operand is a literal.
-
-
-
Method Detail
-
setUp
public void setUp()
-
testSqlNodeLiteral
public void testSqlNodeLiteral()
TestsSqlUtil.isLiteral(SqlNode, boolean)
, which was added to enhance Calcite's public API [CALCITE-1219] Add a method to SqlOperatorBinding to determine whether operand is a literal.
-
testRexNodeLiteral
public void testRexNodeLiteral()
TestsRexUtil.isLiteral(RexNode, boolean)
, which was added to enhance Calcite's public API [CALCITE-1219] Add a method to SqlOperatorBinding to determine whether operand is a literal.
-
-