OmniSciDB  b24e664e58
 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 434 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 435 of file MapDSqlOperatorTable.java.

435  {
436  super("PG_EXTRACT",
437  SqlKind.OTHER_FUNCTION,
438  null,
439  null,
440  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
441  SqlFunctionCategory.SYSTEM);
442  }

Member Function Documentation

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

Definition at line 445 of file MapDSqlOperatorTable.java.

445  {
446  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
447  return typeFactory.createTypeWithNullability(
448  typeFactory.createSqlType(SqlTypeName.BIGINT),
449  opBinding.getOperandType(1).isNullable());
450  }

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