OmniSciDB  04ee39c94c
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 363 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ Now()

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

Definition at line 364 of file MapDSqlOperatorTable.java.

364  {
365  super("NOW",
366  SqlKind.OTHER_FUNCTION,
367  null,
368  null,
369  OperandTypes.NILADIC,
370  SqlFunctionCategory.SYSTEM);
371  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 374 of file MapDSqlOperatorTable.java.

374  {
375  assert opBinding.getOperandCount() == 0;
376  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
377  return typeFactory.createSqlType(SqlTypeName.TIMESTAMP);
378  }

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