OmniSciDB  addbbd5075
 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 501 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 502 of file MapDSqlOperatorTable.java.

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

Member Function Documentation

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

Definition at line 514 of file MapDSqlOperatorTable.java.

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

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