OmniSciDB  4201147b46
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgExtract Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgExtract:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgExtract:

Public Member Functions

 PgExtract ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 486 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgExtract.PgExtract ( )
inline

Definition at line 487 of file HeavyDBSqlOperatorTable.java.

487  {
488  super("PG_EXTRACT",
489  SqlKind.OTHER_FUNCTION,
490  null,
491  null,
492  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
493  SqlFunctionCategory.SYSTEM);
494  }

Member Function Documentation

RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgExtract.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 497 of file HeavyDBSqlOperatorTable.java.

497  {
498  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
499  return typeFactory.createTypeWithNullability(
500  typeFactory.createSqlType(SqlTypeName.BIGINT),
501  opBinding.getOperandType(1).isNullable());
502  }

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