Package org.apache.calcite.sql2rel
Interface SqlNodeToRexConverter
- All Known Implementing Classes:
SqlNodeToRexConverterImpl
public interface 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
-
convertLiteral
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. -
convertInterval
Converts aSQL Interval Qualifier
to aREX literal
.
-