OmniSciDB  addbbd5075
 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 443 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 444 of file MapDSqlOperatorTable.java.

444  {
445  super("DATETIME",
446  SqlKind.OTHER_FUNCTION,
447  null,
448  null,
449  OperandTypes.STRING,
450  SqlFunctionCategory.SYSTEM);
451  }

Member Function Documentation

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

Definition at line 454 of file MapDSqlOperatorTable.java.

References assert().

454  {
455  assert opBinding.getOperandCount() == 1;
456  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
457  return typeFactory.createSqlType(
458  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
459  }
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: