From 68b9a26fd82a7504d4ec62c0922114f9e450a8bc Mon Sep 17 00:00:00 2001 From: MitchellGale-BitQuill Date: Tue, 8 Nov 2022 10:17:15 -0800 Subject: [PATCH] Removed redundant exprTime check for date. Signed-off-by: MitchellGale-BitQuill --- .../opensearch/sql/expression/datetime/DateTimeFunction.java | 3 --- 1 file changed, 3 deletions(-) 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 {