OmniSciDB  085a039ca4
 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 549 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 550 of file HeavyDBSqlOperatorTable.java.

550  {
551  super("DATEDIFF",
552  SqlKind.OTHER_FUNCTION,
553  null,
554  null,
555  OperandTypes.family(SqlTypeFamily.STRING,
556  SqlTypeFamily.DATETIME,
557  SqlTypeFamily.DATETIME),
558  SqlFunctionCategory.TIMEDATE);
559  }

Member Function Documentation

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

Definition at line 562 of file HeavyDBSqlOperatorTable.java.

562  {
563  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
564  return typeFactory.createTypeWithNullability(
565  typeFactory.createSqlType(SqlTypeName.BIGINT),
566  opBinding.getOperandType(1).isNullable()
567  || opBinding.getOperandType(2).isNullable());
568  }

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