OmniSciDB  4201147b46
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Datetime Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Datetime:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Datetime:

Public Member Functions

 Datetime ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 466 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 467 of file HeavyDBSqlOperatorTable.java.

467  {
468  super("DATETIME",
469  SqlKind.OTHER_FUNCTION,
470  null,
471  null,
472  OperandTypes.STRING,
473  SqlFunctionCategory.SYSTEM);
474  }

Member Function Documentation

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

Definition at line 477 of file HeavyDBSqlOperatorTable.java.

477  {
478  assert opBinding.getOperandCount() == 1;
479  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
480  return typeFactory.createSqlType(
481  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
482  }

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