OmniSciDB  a987f07e93
 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 520 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 521 of file HeavyDBSqlOperatorTable.java.

521  {
522  super("PG_EXTRACT",
523  SqlKind.OTHER_FUNCTION,
524  null,
525  null,
526  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
527  SqlFunctionCategory.SYSTEM);
528  }

Member Function Documentation

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

Definition at line 531 of file HeavyDBSqlOperatorTable.java.

531  {
532  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
533  return typeFactory.createTypeWithNullability(
534  typeFactory.createSqlType(SqlTypeName.BIGINT),
535  opBinding.getOperandType(1).isNullable());
536  }

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