OmniSciDB  72c90bc290
 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 560 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 561 of file HeavyDBSqlOperatorTable.java.

561  {
562  super("DATEPART",
563  SqlKind.OTHER_FUNCTION,
564  null,
565  null,
566  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
567  SqlFunctionCategory.TIMEDATE);
568  }

Member Function Documentation

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

Definition at line 571 of file HeavyDBSqlOperatorTable.java.

571  {
572  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
573  return typeFactory.createTypeWithNullability(
574  typeFactory.createSqlType(SqlTypeName.BIGINT),
575  opBinding.getOperandType(1).isNullable());
576  }

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