OmniSciDB  95562058bd
 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 452 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 453 of file MapDSqlOperatorTable.java.

453  {
454  super("DATETIME",
455  SqlKind.OTHER_FUNCTION,
456  null,
457  null,
458  OperandTypes.STRING,
459  SqlFunctionCategory.SYSTEM);
460  }

Member Function Documentation

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

Definition at line 463 of file MapDSqlOperatorTable.java.

References assert().

463  {
464  assert opBinding.getOperandCount() == 1;
465  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
466  return typeFactory.createSqlType(
467  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
468  }
int64_t const int32_t sz assert(dest)

+ Here is the call graph for this function:


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