OmniSciDB  a667adc9c8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 496 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 497 of file MapDSqlOperatorTable.java.

497  {
498  super("DATEADD",
499  SqlKind.OTHER_FUNCTION,
500  null,
501  null,
502  OperandTypes.family(SqlTypeFamily.STRING,
503  SqlTypeFamily.INTEGER,
504  SqlTypeFamily.DATETIME),
505  SqlFunctionCategory.TIMEDATE);
506  }

Member Function Documentation

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

Definition at line 509 of file MapDSqlOperatorTable.java.

References TIMESTAMP.

509  {
510  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
511  return typeFactory.createTypeWithNullability(
512  typeFactory.createSqlType(
513  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
514  opBinding.getOperandType(2).isNullable());
515  }
#define TIMESTAMP

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