OmniSciDB  ab4938a6a3
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 444 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ Datetime()

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

Definition at line 445 of file MapDSqlOperatorTable.java.

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

Member Function Documentation

◆ inferReturnType()

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

Definition at line 455 of file MapDSqlOperatorTable.java.

455  {
456  assert opBinding.getOperandCount() == 1;
457  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
458  return typeFactory.createSqlType(
459  SqlTypeName.TIMESTAMP, opBinding.getOperandType(0).getPrecision());
460  }

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