OmniSciDB  a5dc49c757
 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 629 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 630 of file HeavyDBSqlOperatorTable.java.

630  {
631  super("PG_DATE_TRUNC",
632  SqlKind.OTHER_FUNCTION,
633  null,
634  null,
635  OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
636  SqlFunctionCategory.SYSTEM);
637  }

Member Function Documentation

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

Definition at line 640 of file HeavyDBSqlOperatorTable.java.

640  {
641  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
642  return typeFactory.createTypeWithNullability(
643  typeFactory.createSqlType(
644  SqlTypeName.TIMESTAMP, opBinding.getOperandType(1).getPrecision()),
645  opBinding.getOperandType(1).isNullable());
646  }

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