OmniSciDB  340b00dbf6
 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 536 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 537 of file MapDSqlOperatorTable.java.

537  {
538  super("NOW",
539  SqlKind.OTHER_FUNCTION,
540  null,
541  null,
542  OperandTypes.NILADIC,
543  SqlFunctionCategory.SYSTEM);
544  }

Member Function Documentation

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

Definition at line 547 of file MapDSqlOperatorTable.java.

547  {
548  assert opBinding.getOperandCount() == 0;
549  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
550  return typeFactory.createSqlType(SqlTypeName.TIMESTAMP);
551  }

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