OmniSciDB  a5dc49c757
 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 565 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 566 of file HeavyDBSqlOperatorTable.java.

566  {
567  super("DATEPART",
568  SqlKind.OTHER_FUNCTION,
569  null,
570  null,
571  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
572  SqlFunctionCategory.TIMEDATE);
573  }

Member Function Documentation

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

Definition at line 576 of file HeavyDBSqlOperatorTable.java.

576  {
577  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
578  return typeFactory.createTypeWithNullability(
579  typeFactory.createSqlType(SqlTypeName.BIGINT),
580  opBinding.getOperandType(1).isNullable());
581  }

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