diff --git a/core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFunction.java b/core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFunction.java index b34503dd38..f0cf2b98a7 100644 --- a/core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFunction.java +++ b/core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFunction.java @@ -944,9 +944,6 @@ private ExprValue exprSubDateInterval(ExprValue date, ExprValue expr) { * @return ExprValue. */ private ExprValue exprTime(ExprValue exprValue) { - if (exprValue.type() == DATE) { - return new ExprTimeValue("00:00:00"); - } if (exprValue instanceof ExprStringValue) { return new ExprTimeValue(exprValue.stringValue()); } else {