OmniSciDB  bf83d84833
 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 731 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 732 of file MapDSqlOperatorTable.java.

732  {
733  super("DATEADD",
734  SqlKind.OTHER_FUNCTION,
735  null,
736  null,
737  OperandTypes.family(SqlTypeFamily.STRING,
738  SqlTypeFamily.INTEGER,
739  SqlTypeFamily.DATETIME),
740  SqlFunctionCategory.TIMEDATE);
741  }

Member Function Documentation

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

Definition at line 744 of file MapDSqlOperatorTable.java.

744  {
745  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
746  return typeFactory.createTypeWithNullability(
747  typeFactory.createSqlType(
748  SqlTypeName.TIMESTAMP, opBinding.getOperandType(2).getPrecision()),
749  opBinding.getOperandType(2).isNullable());
750  }

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