OmniSciDB  b28c0d5765
 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 538 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 539 of file HeavyDBSqlOperatorTable.java.

539  {
540  super("DATEPART",
541  SqlKind.OTHER_FUNCTION,
542  null,
543  null,
544  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
545  SqlFunctionCategory.TIMEDATE);
546  }

Member Function Documentation

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

Definition at line 549 of file HeavyDBSqlOperatorTable.java.

549  {
550  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
551  return typeFactory.createTypeWithNullability(
552  typeFactory.createSqlType(SqlTypeName.BIGINT),
553  opBinding.getOperandType(1).isNullable());
554  }

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