Package org.apache.calcite.sql2rel
Class SqlNodeToRexConverterImpl
java.lang.Object
org.apache.calcite.sql2rel.SqlNodeToRexConverterImpl
- All Implemented Interfaces:
SqlNodeToRexConverter
Standard implementation of
SqlNodeToRexConverter
.-
Method Summary
Modifier and TypeMethodDescriptionconvertCall
(SqlRexContext cx, SqlCall call) convertInterval
(SqlRexContext cx, SqlIntervalQualifier intervalQualifier) Converts aSQL Interval Qualifier
to aREX literal
.convertLiteral
(SqlRexContext cx, SqlLiteral literal) Converts aSQL literal
to aREX literal
.
-
Method Details
-
convertCall
Description copied from interface:SqlNodeToRexConverter
- Specified by:
convertCall
in interfaceSqlNodeToRexConverter
-
convertInterval
Description copied from interface:SqlNodeToRexConverter
Converts aSQL Interval Qualifier
to aREX literal
.- Specified by:
convertInterval
in interfaceSqlNodeToRexConverter
-
convertLiteral
Description copied from interface:SqlNodeToRexConverter
Converts aSQL literal
to aREX literal
.The result is
RexNode
, notRexLiteral
because if the literal is NULL (or the boolean Unknown value), we make aCAST(NULL AS type)
expression.- Specified by:
convertLiteral
in interfaceSqlNodeToRexConverter
-