OmniSciDB  04ee39c94c
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 382 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ Datetime()

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

Definition at line 383 of file MapDSqlOperatorTable.java.

383  {
384  super("DATETIME",
385  SqlKind.OTHER_FUNCTION,
386  null,
387  null,
388  OperandTypes.STRING,
389  SqlFunctionCategory.SYSTEM);
390  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 393 of file MapDSqlOperatorTable.java.

393  {
394  assert opBinding.getOperandCount() == 1;
395  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
396  return typeFactory.createSqlType(
397  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
398  }

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