OmniSciDB  a5dc49c757
 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 546 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 547 of file HeavyDBSqlOperatorTable.java.

547  {
548  super("PG_EXTRACT",
549  SqlKind.OTHER_FUNCTION,
550  null,
551  null,
552  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
553  SqlFunctionCategory.SYSTEM);
554  }

Member Function Documentation

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

Definition at line 557 of file HeavyDBSqlOperatorTable.java.

557  {
558  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
559  return typeFactory.createTypeWithNullability(
560  typeFactory.createSqlType(SqlTypeName.BIGINT),
561  opBinding.getOperandType(1).isNullable());
562  }

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