com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc.PgDateTrunc |
( |
| ) |
|
|
inline |
Definition at line 570 of file HeavyDBSqlOperatorTable.java.
571 super(
"PG_DATE_TRUNC",
572 SqlKind.OTHER_FUNCTION,
575 OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
576 SqlFunctionCategory.SYSTEM);
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 580 of file HeavyDBSqlOperatorTable.java.
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());
The documentation for this class was generated from the following file: