OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.Datetime Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Datetime:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Datetime:

Public Member Functions

 Datetime ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 438 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 439 of file MapDSqlOperatorTable.java.

439  {
440  super("DATETIME",
441  SqlKind.OTHER_FUNCTION,
442  null,
443  null,
444  OperandTypes.STRING,
445  SqlFunctionCategory.SYSTEM);
446  }

Member Function Documentation

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

Definition at line 449 of file MapDSqlOperatorTable.java.

References TIMESTAMP.

449  {
450  assert opBinding.getOperandCount() == 1;
451  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
452  return typeFactory.createSqlType(
453  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
454  }
#define TIMESTAMP

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