OmniSciDB  b24e664e58
 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 472 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 473 of file MapDSqlOperatorTable.java.

473  {
474  super("DATEADD",
475  SqlKind.OTHER_FUNCTION,
476  null,
477  null,
478  OperandTypes.family(SqlTypeFamily.STRING,
479  SqlTypeFamily.INTEGER,
480  SqlTypeFamily.DATETIME),
481  SqlFunctionCategory.TIMEDATE);
482  }

Member Function Documentation

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

Definition at line 485 of file MapDSqlOperatorTable.java.

485  {
486  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
487  return typeFactory.createTypeWithNullability(
488  typeFactory.createSqlType(
489  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
490  opBinding.getOperandType(2).isNullable());
491  }

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