OmniSciDB  8a228a1076
com.mapd.calcite.parser.MapDSqlOperatorTable.Now Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Now:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Now:

Public Member Functions

 Now ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 433 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ Now()

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

Definition at line 434 of file MapDSqlOperatorTable.java.

434  {
435  super("NOW",
436  SqlKind.OTHER_FUNCTION,
437  null,
438  null,
439  OperandTypes.NILADIC,
440  SqlFunctionCategory.SYSTEM);
441  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 444 of file MapDSqlOperatorTable.java.

444  {
445  assert opBinding.getOperandCount() == 0;
446  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
447  return typeFactory.createSqlType(SqlTypeName.TIMESTAMP);
448  }

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