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

Constructor & Destructor Documentation

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

Definition at line 484 of file MapDSqlOperatorTable.java.

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

Member Function Documentation

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

Definition at line 494 of file MapDSqlOperatorTable.java.

References BIGINT.

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

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