Definition at line 517 of file MapDSqlOperatorTable.java.
com.mapd.calcite.parser.MapDSqlOperatorTable.PgDateTrunc.PgDateTrunc |
( |
| ) |
|
|
inline |
Definition at line 518 of file MapDSqlOperatorTable.java.
519 super(
"PG_DATE_TRUNC",
520 SqlKind.OTHER_FUNCTION,
523 OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
524 SqlFunctionCategory.SYSTEM);
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.PgDateTrunc.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 528 of file MapDSqlOperatorTable.java.
529 final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
530 return typeFactory.createTypeWithNullability(
531 typeFactory.createSqlType(
532 SqlTypeName.TIMESTAMP, opBinding.getOperandType(1).getPrecision()),
533 opBinding.getOperandType(1).isNullable());
The documentation for this class was generated from the following file: