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

Public Member Functions

 Datediff ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 606 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 607 of file HeavyDBSqlOperatorTable.java.

607  {
608  super("DATEDIFF",
609  SqlKind.OTHER_FUNCTION,
610  null,
611  null,
612  OperandTypes.family(SqlTypeFamily.STRING,
613  SqlTypeFamily.DATETIME,
614  SqlTypeFamily.DATETIME),
615  SqlFunctionCategory.TIMEDATE);
616  }

Member Function Documentation

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

Definition at line 619 of file HeavyDBSqlOperatorTable.java.

619  {
620  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
621  return typeFactory.createTypeWithNullability(
622  typeFactory.createSqlType(SqlTypeName.BIGINT),
623  opBinding.getOperandType(1).isNullable()
624  || opBinding.getOperandType(2).isNullable());
625  }

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