OmniSciDB  a987f07e93
 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 558 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 559 of file HeavyDBSqlOperatorTable.java.

559  {
560  super("DATEADD",
561  SqlKind.OTHER_FUNCTION,
562  null,
563  null,
564  OperandTypes.family(SqlTypeFamily.STRING,
565  SqlTypeFamily.INTEGER,
566  SqlTypeFamily.DATETIME),
567  SqlFunctionCategory.TIMEDATE);
568  }

Member Function Documentation

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

Definition at line 571 of file HeavyDBSqlOperatorTable.java.

571  {
572  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
573  return typeFactory.createTypeWithNullability(
574  typeFactory.createSqlType(
575  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
576  opBinding.getOperandType(2).isNullable());
577  }

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