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

Constructor & Destructor Documentation

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

Definition at line 426 of file MapDSqlOperatorTable.java.

426  {
427  super("NOW",
428  SqlKind.OTHER_FUNCTION,
429  null,
430  null,
431  OperandTypes.NILADIC,
432  SqlFunctionCategory.SYSTEM);
433  }

Member Function Documentation

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

Definition at line 436 of file MapDSqlOperatorTable.java.

References TIMESTAMP.

436  {
437  assert opBinding.getOperandCount() == 0;
438  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
439  return typeFactory.createSqlType(SqlTypeName.TIMESTAMP);
440  }
#define TIMESTAMP

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