OmniSciDB  04ee39c94c
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 402 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ PgExtract()

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

Definition at line 403 of file MapDSqlOperatorTable.java.

403  {
404  super("PG_EXTRACT",
405  SqlKind.OTHER_FUNCTION,
406  null,
407  null,
408  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
409  SqlFunctionCategory.SYSTEM);
410  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 413 of file MapDSqlOperatorTable.java.

413  {
414  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
415  return typeFactory.createTypeWithNullability(
416  typeFactory.createSqlType(SqlTypeName.BIGINT),
417  opBinding.getOperandType(1).isNullable());
418  }

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