OmniSciDB  f632821e96
com.mapd.calcite.parser.MapDSqlOperatorTable.Dateadd Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Dateadd:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Dateadd:

Public Member Functions

 Dateadd ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 510 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ Dateadd()

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

Definition at line 511 of file MapDSqlOperatorTable.java.

511  {
512  super("DATEADD",
513  SqlKind.OTHER_FUNCTION,
514  null,
515  null,
516  OperandTypes.family(SqlTypeFamily.STRING,
517  SqlTypeFamily.INTEGER,
518  SqlTypeFamily.DATETIME),
519  SqlFunctionCategory.TIMEDATE);
520  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 523 of file MapDSqlOperatorTable.java.

523  {
524  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
525  return typeFactory.createTypeWithNullability(
526  typeFactory.createSqlType(
527  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
528  opBinding.getOperandType(2).isNullable());
529  }

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