OmniSciDB  a5dc49c757
 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 584 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 585 of file HeavyDBSqlOperatorTable.java.

585  {
586  super("DATEADD",
587  SqlKind.OTHER_FUNCTION,
588  null,
589  null,
590  OperandTypes.family(SqlTypeFamily.STRING,
591  SqlTypeFamily.INTEGER,
592  SqlTypeFamily.DATETIME),
593  SqlFunctionCategory.TIMEDATE);
594  }

Member Function Documentation

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

Definition at line 597 of file HeavyDBSqlOperatorTable.java.

597  {
598  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
599  return typeFactory.createTypeWithNullability(
600  typeFactory.createSqlType(
601  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
602  opBinding.getOperandType(2).isNullable());
603  }

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