com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ArrayLength.ArrayLength |
( |
| ) |
|
|
inline |
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ArrayLength.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 917 of file HeavyDBSqlOperatorTable.java.
918 final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
919 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 923 of file HeavyDBSqlOperatorTable.java.
927 for (
int i = 0; i < call.operandCount(); ++i) {
928 SqlNode operand = call.operand(i);
929 if (operand instanceof SqlCall) {
930 SqlCall operand_call = (SqlCall) operand;
931 SqlOperator call_oper = operand_call.getOperator();
932 if (call_oper instanceof SqlFunction) {
933 SqlFunction call_func = (SqlFunction) call_oper;
934 if (call_func.getFunctionType()
935 == SqlFunctionCategory.USER_DEFINED_FUNCTION) {
940 throw validator.newValidationError(
941 call, _ERRORS.illegalArrayLengthCall(call.toString()));
946 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: