OmniSciDB  a5dc49c757
 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 526 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 527 of file HeavyDBSqlOperatorTable.java.

527  {
528  super("DATETIME",
529  SqlKind.OTHER_FUNCTION,
530  null,
531  null,
532  OperandTypes.STRING,
533  SqlFunctionCategory.SYSTEM);
534  }

Member Function Documentation

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

Definition at line 537 of file HeavyDBSqlOperatorTable.java.

537  {
538  assert opBinding.getOperandCount() == 1;
539  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
540  return typeFactory.createSqlType(
541  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
542  }

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