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

Public Member Functions

 Dateadd ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 527 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 528 of file HeavyDBSqlOperatorTable.java.

528  {
529  super("DATEADD",
530  SqlKind.OTHER_FUNCTION,
531  null,
532  null,
533  OperandTypes.family(SqlTypeFamily.STRING,
534  SqlTypeFamily.INTEGER,
535  SqlTypeFamily.DATETIME),
536  SqlFunctionCategory.TIMEDATE);
537  }

Member Function Documentation

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

Definition at line 540 of file HeavyDBSqlOperatorTable.java.

540  {
541  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
542  return typeFactory.createTypeWithNullability(
543  typeFactory.createSqlType(
544  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
545  opBinding.getOperandType(2).isNullable());
546  }

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