OmniSciDB  a667adc9c8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 277 of file MapDSqlOperatorTable.java.

Member Function Documentation

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

Definition at line 289 of file MapDSqlOperatorTable.java.

289  {
290  if (callBinding.operands().isEmpty()) {
291  return true;
292  }
293  return super.checkOperandTypes(callBinding, throwOnFailure);
294  }
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.getComponentType ( RelDataTypeFactory  typeFactory,
List< RelDataType >  argTypes 
)
inlineprotected

Definition at line 280 of file MapDSqlOperatorTable.java.

281  {
282  if (argTypes.isEmpty()) {
283  return typeFactory.createSqlType(SqlTypeName.NULL);
284  }
285  return super.getComponentType(typeFactory, argTypes);
286  }

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