OmniSciDB  95562058bd
 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 472 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 473 of file MapDSqlOperatorTable.java.

473  {
474  super("PG_EXTRACT",
475  SqlKind.OTHER_FUNCTION,
476  null,
477  null,
478  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
479  SqlFunctionCategory.SYSTEM);
480  }

Member Function Documentation

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

Definition at line 483 of file MapDSqlOperatorTable.java.

483  {
484  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
485  return typeFactory.createTypeWithNullability(
486  typeFactory.createSqlType(SqlTypeName.BIGINT),
487  opBinding.getOperandType(1).isNullable());
488  }

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