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

Constructor & Destructor Documentation

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

Definition at line 503 of file MapDSqlOperatorTable.java.

503  {
504  super("DATEADD",
505  SqlKind.OTHER_FUNCTION,
506  null,
507  null,
508  OperandTypes.family(SqlTypeFamily.STRING,
509  SqlTypeFamily.INTEGER,
510  SqlTypeFamily.DATETIME),
511  SqlFunctionCategory.TIMEDATE);
512  }

Member Function Documentation

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

Definition at line 515 of file MapDSqlOperatorTable.java.

References TIMESTAMP.

515  {
516  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
517  return typeFactory.createTypeWithNullability(
518  typeFactory.createSqlType(
519  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
520  opBinding.getOperandType(2).isNullable());
521  }
#define TIMESTAMP

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