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

Public Member Functions

 Datediff ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 753 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 754 of file MapDSqlOperatorTable.java.

754  {
755  super("DATEDIFF",
756  SqlKind.OTHER_FUNCTION,
757  null,
758  null,
759  OperandTypes.family(SqlTypeFamily.STRING,
760  SqlTypeFamily.DATETIME,
761  SqlTypeFamily.DATETIME),
762  SqlFunctionCategory.TIMEDATE);
763  }

Member Function Documentation

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

Definition at line 766 of file MapDSqlOperatorTable.java.

766  {
767  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
768  return typeFactory.createTypeWithNullability(
769  typeFactory.createSqlType(SqlTypeName.BIGINT),
770  opBinding.getOperandType(1).isNullable()
771  || opBinding.getOperandType(2).isNullable());
772  }

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