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

Public Member Functions

 PgExtract ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 464 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 465 of file MapDSqlOperatorTable.java.

465  {
466  super("PG_EXTRACT",
467  SqlKind.OTHER_FUNCTION,
468  null,
469  null,
470  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
471  SqlFunctionCategory.SYSTEM);
472  }

Member Function Documentation

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

Definition at line 475 of file MapDSqlOperatorTable.java.

References BIGINT.

475  {
476  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
477  return typeFactory.createTypeWithNullability(
478  typeFactory.createSqlType(SqlTypeName.BIGINT),
479  opBinding.getOperandType(1).isNullable());
480  }
#define BIGINT

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