OmniSciDB  1dac507f6e
 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 414 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 415 of file MapDSqlOperatorTable.java.

415  {
416  super("DATETIME",
417  SqlKind.OTHER_FUNCTION,
418  null,
419  null,
420  OperandTypes.STRING,
421  SqlFunctionCategory.SYSTEM);
422  }

Member Function Documentation

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

Definition at line 425 of file MapDSqlOperatorTable.java.

References assert().

425  {
426  assert opBinding.getOperandCount() == 1;
427  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
428  return typeFactory.createSqlType(
429  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
430  }
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: