OmniSciDB  cecceef8da
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.Datepart Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Datepart:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Datepart:

Public Member Functions

 Datepart ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 482 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.MapDSqlOperatorTable.Datepart.Datepart ( )
inline

Definition at line 483 of file MapDSqlOperatorTable.java.

483  {
484  super("DATEPART",
485  SqlKind.OTHER_FUNCTION,
486  null,
487  null,
488  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
489  SqlFunctionCategory.TIMEDATE);
490  }

Member Function Documentation

RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Datepart.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 493 of file MapDSqlOperatorTable.java.

493  {
494  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
495  return typeFactory.createTypeWithNullability(
496  typeFactory.createSqlType(SqlTypeName.BIGINT),
497  opBinding.getOperandType(1).isNullable());
498  }

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