public class DrillCalciteSqlBetweenOperatorWrapper extends org.apache.calcite.sql.fun.SqlBetweenOperator implements DrillCalciteSqlWrapper
DrillCalciteSqlOperatorWrapper. The reason is when RexNode
conversion is happening, StandardConvertletTable.convertBetween expects the SqlOperator to be a subclass of SqlBetweenOperator.| Constructor and Description |
|---|
DrillCalciteSqlBetweenOperatorWrapper(org.apache.calcite.sql.fun.SqlBetweenOperator sqlBetweenOperator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding,
boolean throwOnFailure)
Since Calcite has its rule for type compatibility
(see
SqlTypeUtil.isComparable(org.apache.calcite.rel.type.RelDataType,
org.apache.calcite.rel.type.RelDataType)), which is usually different from Drill's, this method is overridden here to avoid
Calcite early terminating the queries. |
org.apache.calcite.sql.SqlOperator |
getOperator()
Get the wrapped
SqlOperator |
getName, getSignatureTemplate, inferReturnType, isNegated, reduceExpr, unparseacceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, deriveType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getNameAsId, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, hashCode, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateCall, validateOperands, validRexOperandspublic DrillCalciteSqlBetweenOperatorWrapper(org.apache.calcite.sql.fun.SqlBetweenOperator sqlBetweenOperator)
public org.apache.calcite.sql.SqlOperator getOperator()
DrillCalciteSqlWrapperSqlOperatorgetOperator in interface DrillCalciteSqlWrapperSqlOperatorpublic boolean checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding,
boolean throwOnFailure)
SqlTypeUtil.isComparable(org.apache.calcite.rel.type.RelDataType,
org.apache.calcite.rel.type.RelDataType)), which is usually different from Drill's, this method is overridden here to avoid
Calcite early terminating the queries.checkOperandTypes in class org.apache.calcite.sql.SqlOperatorCopyright © 2021 The Apache Software Foundation. All rights reserved.