public class SqlDescriptorOperator
extends org.apache.calcite.sql.SqlOperator
A typical syntax is DESCRIPTOR(col_name, ...).
An example is a table-valued function that takes names of columns to filter on.
Note: we copied the implementation from Calcite's SqlDescriptorOperator
, but support forwarding column name information and
data types if available. This is important because we will generate an additional window_time
time attribute column which should keep the same type with original time attribute.
Constructor and Description |
---|
SqlDescriptorOperator() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding,
boolean throwOnFailure) |
org.apache.calcite.rel.type.RelDataType |
deriveType(org.apache.calcite.sql.validate.SqlValidator validator,
org.apache.calcite.sql.validate.SqlValidatorScope scope,
org.apache.calcite.sql.SqlCall call) |
org.apache.calcite.sql.SqlOperandCountRange |
getOperandCountRange() |
org.apache.calcite.sql.SqlSyntax |
getSyntax() |
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getNameAsId, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparse, unparseListClause, unparseListClause, validateCall, validateOperands, validRexOperands
public org.apache.calcite.rel.type.RelDataType deriveType(org.apache.calcite.sql.validate.SqlValidator validator, org.apache.calcite.sql.validate.SqlValidatorScope scope, org.apache.calcite.sql.SqlCall call)
deriveType
in class org.apache.calcite.sql.SqlOperator
public boolean checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding, boolean throwOnFailure)
checkOperandTypes
in class org.apache.calcite.sql.SqlOperator
public org.apache.calcite.sql.SqlOperandCountRange getOperandCountRange()
getOperandCountRange
in class org.apache.calcite.sql.SqlOperator
public org.apache.calcite.sql.SqlSyntax getSyntax()
getSyntax
in class org.apache.calcite.sql.SqlOperator
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.