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

Constructor & Destructor Documentation

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

Definition at line 674 of file MapDSqlOperatorTable.java.

674  {
675  super("DATETIME",
676  SqlKind.OTHER_FUNCTION,
677  null,
678  null,
679  OperandTypes.STRING,
680  SqlFunctionCategory.SYSTEM);
681  }

Member Function Documentation

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

Definition at line 684 of file MapDSqlOperatorTable.java.

684  {
685  assert opBinding.getOperandCount() == 1;
686  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
687  return typeFactory.createSqlType(
688  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
689  }

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