com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ArrayLength.ArrayLength |
( |
| ) |
|
|
inline |
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ArrayLength.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 919 of file HeavyDBSqlOperatorTable.java.
920 final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
921 return typeFactory.createSqlType(SqlTypeName.INTEGER);
void com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ArrayLength.validateCall |
( |
SqlCall |
call, |
|
|
SqlValidator |
validator, |
|
|
SqlValidatorScope |
scope, |
|
|
SqlValidatorScope |
operandScope |
|
) |
| |
|
inline |
Definition at line 925 of file HeavyDBSqlOperatorTable.java.
929 for (
int i = 0; i < call.operandCount(); ++i) {
930 SqlNode operand = call.operand(i);
931 if (operand instanceof SqlCall) {
932 SqlCall operand_call = (SqlCall) operand;
933 SqlOperator call_oper = operand_call.getOperator();
934 if (call_oper instanceof SqlFunction) {
935 SqlFunction call_func = (SqlFunction) call_oper;
936 if (call_func.getFunctionType()
937 == SqlFunctionCategory.USER_DEFINED_FUNCTION) {
942 throw validator.newValidationError(
943 call, _ERRORS.illegalArrayLengthCall(call.toString()));
948 super.validateCall(call, validator, scope, operandScope);
final ArrayLengthErrors com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ArrayLength._ERRORS |
|
static |
The documentation for this class was generated from the following file: