OmniSciDB  b24e664e58
 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 494 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 495 of file MapDSqlOperatorTable.java.

495  {
496  super("DATEDIFF",
497  SqlKind.OTHER_FUNCTION,
498  null,
499  null,
500  OperandTypes.family(SqlTypeFamily.STRING,
501  SqlTypeFamily.DATETIME,
502  SqlTypeFamily.DATETIME),
503  SqlFunctionCategory.TIMEDATE);
504  }

Member Function Documentation

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

Definition at line 507 of file MapDSqlOperatorTable.java.

507  {
508  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
509  return typeFactory.createTypeWithNullability(
510  typeFactory.createSqlType(SqlTypeName.BIGINT),
511  opBinding.getOperandType(1).isNullable()
512  || opBinding.getOperandType(2).isNullable());
513  }

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