diff --git a/plugin/trino-oracle/src/test/java/io/trino/plugin/oracle/BaseOracleConnectorTest.java b/plugin/trino-oracle/src/test/java/io/trino/plugin/oracle/BaseOracleConnectorTest.java index c24932c4adba..bbc8cf194da1 100644 --- a/plugin/trino-oracle/src/test/java/io/trino/plugin/oracle/BaseOracleConnectorTest.java +++ b/plugin/trino-oracle/src/test/java/io/trino/plugin/oracle/BaseOracleConnectorTest.java @@ -90,11 +90,8 @@ protected Optional filterDataMappingSmokeTestData(DataMapp { String typeName = dataMappingTestSetup.getTrinoTypeName(); if (typeName.equals("date")) { - // TODO (https://github.com/trinodb/trino/issues) Oracle connector stores wrong result when the date value <= 1582-10-14 - if (dataMappingTestSetup.getSampleValueLiteral().equals("DATE '0001-01-01'") - || dataMappingTestSetup.getSampleValueLiteral().equals("DATE '1582-10-04'") - || dataMappingTestSetup.getSampleValueLiteral().equals("DATE '1582-10-05'") - || dataMappingTestSetup.getSampleValueLiteral().equals("DATE '1582-10-14'")) { + // Oracle TO_DATE function returns +10 days during julian and gregorian calendar switch + if (dataMappingTestSetup.getSampleValueLiteral().equals("DATE '1582-10-05'")) { return Optional.empty(); } }