OmniSciDB  4201147b46
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc:

Public Member Functions

 PgDateTrunc ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

Definition at line 569 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc.PgDateTrunc ( )
inline

Definition at line 570 of file HeavyDBSqlOperatorTable.java.

570  {
571  super("PG_DATE_TRUNC",
572  SqlKind.OTHER_FUNCTION,
573  null,
574  null,
575  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
576  SqlFunctionCategory.SYSTEM);
577  }

Member Function Documentation

RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 580 of file HeavyDBSqlOperatorTable.java.

580  {
581  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
582  return typeFactory.createTypeWithNullability(
583  typeFactory.createSqlType(
584  SqlTypeName.TIMESTAMP, opBinding.getOperandType(1).getPrecision()),
585  opBinding.getOperandType(1).isNullable());
586  }

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