OmniSciDB  04ee39c94c
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 440 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ Dateadd()

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

Definition at line 441 of file MapDSqlOperatorTable.java.

441  {
442  super("DATEADD",
443  SqlKind.OTHER_FUNCTION,
444  null,
445  null,
446  OperandTypes.family(SqlTypeFamily.STRING,
447  SqlTypeFamily.INTEGER,
448  SqlTypeFamily.DATETIME),
449  SqlFunctionCategory.TIMEDATE);
450  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 453 of file MapDSqlOperatorTable.java.

453  {
454  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
455  return typeFactory.createTypeWithNullability(
456  typeFactory.createSqlType(
457  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
458  opBinding.getOperandType(2).isNullable());
459  }

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