Package org.apache.calcite.sql.fun
Class SqlThrowOperator
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlSpecialOperator
org.apache.calcite.sql.fun.SqlThrowOperator
An internal operator that throws an exception.
 
The exception is thrown with a (localized) error message which is the only input parameter to the operator.
The return type is defined as a BOOLEAN to facilitate the use
 of it in constructs such as the following:
 
CASE
 WHEN <condition> THEN true
 ELSE throw("what's wrong with you man?")
 END- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.calcite.sql.SqlSpecialOperatorSqlSpecialOperator.ReduceResult, SqlSpecialOperator.TokenSequence
- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlOperatorkind, MDX_PRECEDENCE, NL
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.calcite.sql.SqlSpecialOperatorgetSyntax, reduceExprMethods inherited from class org.apache.calcite.sql.SqlOperatoracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, deriveType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getNameAsId, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getSqlCallFactory, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateCall, validateOperands, validRexOperands
- 
Constructor Details- 
SqlThrowOperatorpublic SqlThrowOperator()
 
- 
- 
Method Details- 
unparseDescription copied from class:SqlOperatorWrites a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.The default implementation of this method delegates to SqlSyntax.unparse(org.apache.calcite.sql.SqlWriter, org.apache.calcite.sql.SqlOperator, org.apache.calcite.sql.SqlCall, int, int).- Overrides:
- unparsein class- SqlOperator
 
 
-