From f2b1cfc4b601ce7c7d0bd518de546d1606025aa3 Mon Sep 17 00:00:00 2001 From: chenjian2664 Date: Sun, 14 May 2023 17:16:32 +0800 Subject: [PATCH] Update Oracle date type mapping test cases --- .../io/trino/plugin/oracle/BaseOracleConnectorTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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(); } }