OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 419 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 420 of file MapDSqlOperatorTable.java.

420  {
421  super("NOW",
422  SqlKind.OTHER_FUNCTION,
423  null,
424  null,
425  OperandTypes.NILADIC,
426  SqlFunctionCategory.SYSTEM);
427  }

Member Function Documentation

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

Definition at line 430 of file MapDSqlOperatorTable.java.

References TIMESTAMP.

430  {
431  assert opBinding.getOperandCount() == 0;
432  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
433  return typeFactory.createSqlType(SqlTypeName.TIMESTAMP);
434  }
#define TIMESTAMP

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