com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ArrayLength.ArrayLength |
( |
| ) |
|
|
inline |
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.ArrayLength.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 924 of file HeavyDBSqlOperatorTable.java.
925 final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
926 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 930 of file HeavyDBSqlOperatorTable.java.
934 for (
int i = 0; i < call.operandCount(); ++i) {
935 SqlNode operand = call.operand(i);
936 if (operand instanceof SqlCall) {
937 SqlCall operand_call = (SqlCall) operand;
938 SqlOperator call_oper = operand_call.getOperator();
939 if (call_oper instanceof SqlFunction) {
940 SqlFunction call_func = (SqlFunction) call_oper;
941 if (call_func.getFunctionType()
942 == SqlFunctionCategory.USER_DEFINED_FUNCTION) {
947 throw validator.newValidationError(
948 call, _ERRORS.illegalArrayLengthCall(call.toString()));
953 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: