OmniSciDB  addbbd5075
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 463 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 464 of file MapDSqlOperatorTable.java.

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

Member Function Documentation

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

Definition at line 474 of file MapDSqlOperatorTable.java.

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

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