Definition at line 776 of file MapDSqlOperatorTable.java.
◆ PgDateTrunc()
com.mapd.calcite.parser.MapDSqlOperatorTable.PgDateTrunc.PgDateTrunc |
( |
| ) |
|
|
inline |
Definition at line 777 of file MapDSqlOperatorTable.java.
778 super(
"PG_DATE_TRUNC",
779 SqlKind.OTHER_FUNCTION,
782 OperandTypes.family(SqlTypeFamily.STRING, SqlTypeFamily.DATETIME),
783 SqlFunctionCategory.SYSTEM);
◆ inferReturnType()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.PgDateTrunc.inferReturnType |
( |
SqlOperatorBinding |
opBinding | ) |
|
|
inline |
Definition at line 787 of file MapDSqlOperatorTable.java.
788 final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
789 return typeFactory.createTypeWithNullability(
790 typeFactory.createSqlType(
791 SqlTypeName.TIMESTAMP, opBinding.getOperandType(1).getPrecision()),
792 opBinding.getOperandType(1).isNullable());
The documentation for this class was generated from the following file: