diff --git a/core/src/main/java/org/opensearch/sql/data/type/ExprCoreType.java b/core/src/main/java/org/opensearch/sql/data/type/ExprCoreType.java index a674f668bf..a9ceeac4dc 100644 --- a/core/src/main/java/org/opensearch/sql/data/type/ExprCoreType.java +++ b/core/src/main/java/org/opensearch/sql/data/type/ExprCoreType.java @@ -57,7 +57,7 @@ public enum ExprCoreType implements ExprType { DATE(STRING), TIME(STRING), DATETIME(STRING, DATE, TIME), - TIMESTAMP(STRING, DATE, TIME, DATETIME), + TIMESTAMP(STRING, DATETIME), INTERVAL(UNDEFINED), /** diff --git a/core/src/test/java/org/opensearch/sql/expression/function/WideningTypeRuleTest.java b/core/src/test/java/org/opensearch/sql/expression/function/WideningTypeRuleTest.java index 1d8f4b725d..27b36a0fec 100644 --- a/core/src/test/java/org/opensearch/sql/expression/function/WideningTypeRuleTest.java +++ b/core/src/test/java/org/opensearch/sql/expression/function/WideningTypeRuleTest.java @@ -63,8 +63,8 @@ class WideningTypeRuleTest { .put(STRING, DATETIME, 1) .put(DATE, DATETIME, 1) .put(TIME, DATETIME, 1) - .put(DATE, TIMESTAMP, 1) - .put(TIME, TIMESTAMP, 1) + .put(DATE, TIMESTAMP, 2) + .put(TIME, TIMESTAMP, 2) .put(DATETIME, TIMESTAMP, 1) .put(UNDEFINED, BYTE, 1) .put(UNDEFINED, SHORT, 2)