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

Public Member Functions

 Datepart ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 505 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 506 of file HeavyDBSqlOperatorTable.java.

506  {
507  super("DATEPART",
508  SqlKind.OTHER_FUNCTION,
509  null,
510  null,
511  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
512  SqlFunctionCategory.TIMEDATE);
513  }

Member Function Documentation

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

Definition at line 516 of file HeavyDBSqlOperatorTable.java.

516  {
517  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
518  return typeFactory.createTypeWithNullability(
519  typeFactory.createSqlType(SqlTypeName.BIGINT),
520  opBinding.getOperandType(1).isNullable());
521  }

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