com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc.PgDateTrunc |
( |
| ) |
|
|
inline |
Definition at line 611 of file HeavyDBSqlOperatorTable.java.
612 super(
"PG_DATE_TRUNC",
613 SqlKind.OTHER_FUNCTION,
616 OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
617 SqlFunctionCategory.SYSTEM);
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 621 of file HeavyDBSqlOperatorTable.java.
622 final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
623 return typeFactory.createTypeWithNullability(
624 typeFactory.createSqlType(
625 SqlTypeName.TIMESTAMP, opBinding.getOperandType(1).getPrecision()),
626 opBinding.getOperandType(1).isNullable());
The documentation for this class was generated from the following file: