com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc.PgDateTrunc |
( |
| ) |
|
|
inline |
Definition at line 623 of file HeavyDBSqlOperatorTable.java.
624 super(
"PG_DATE_TRUNC",
625 SqlKind.OTHER_FUNCTION,
628 OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
629 SqlFunctionCategory.SYSTEM);
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.PgDateTrunc.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 633 of file HeavyDBSqlOperatorTable.java.
634 final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
635 return typeFactory.createTypeWithNullability(
636 typeFactory.createSqlType(
637 SqlTypeName.TIMESTAMP, opBinding.getOperandType(1).getPrecision()),
638 opBinding.getOperandType(1).isNullable());
The documentation for this class was generated from the following file: