OmniSciDB  2e3a973ef4
com.mapd.calcite.parser.MapDSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty:

Public Member Functions

boolean checkOperandTypes (SqlCallBinding callBinding, boolean throwOnFailure)
 

Protected Member Functions

RelDataType getComponentType (RelDataTypeFactory typeFactory, List< RelDataType > argTypes)
 

Detailed Description

Definition at line 264 of file MapDSqlOperatorTable.java.

Member Function Documentation

◆ checkOperandTypes()

boolean com.mapd.calcite.parser.MapDSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.checkOperandTypes ( SqlCallBinding  callBinding,
boolean  throwOnFailure 
)
inline

Definition at line 276 of file MapDSqlOperatorTable.java.

276  {
277  if (callBinding.operands().isEmpty()) {
278  return true;
279  }
280  return super.checkOperandTypes(callBinding, throwOnFailure);
281  }

◆ getComponentType()

RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.getComponentType ( RelDataTypeFactory  typeFactory,
List< RelDataType >  argTypes 
)
inlineprotected

Definition at line 267 of file MapDSqlOperatorTable.java.

268  {
269  if (argTypes.isEmpty()) {
270  return typeFactory.createSqlType(SqlTypeName.NULL);
271  }
272  return super.getComponentType(typeFactory, argTypes);
273  }

The documentation for this class was generated from the following file: