OmniSciDB  a987f07e93
 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 500 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 501 of file HeavyDBSqlOperatorTable.java.

501  {
502  super("DATETIME",
503  SqlKind.OTHER_FUNCTION,
504  null,
505  null,
506  OperandTypes.STRING,
507  SqlFunctionCategory.SYSTEM);
508  }

Member Function Documentation

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

Definition at line 511 of file HeavyDBSqlOperatorTable.java.

511  {
512  assert opBinding.getOperandCount() == 1;
513  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
514  return typeFactory.createSqlType(
515  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
516  }

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