From 7daa8ec53ae68710453f6d955ac9cea503fdf2d0 Mon Sep 17 00:00:00 2001 From: currantw Date: Wed, 15 Jan 2025 12:52:30 -0800 Subject: [PATCH] Fix failing IT Signed-off-by: currantw --- .../spark/ppl/FlintSparkPPLBuiltInDateTimeFunctionITSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integ-test/src/integration/scala/org/opensearch/flint/spark/ppl/FlintSparkPPLBuiltInDateTimeFunctionITSuite.scala b/integ-test/src/integration/scala/org/opensearch/flint/spark/ppl/FlintSparkPPLBuiltInDateTimeFunctionITSuite.scala index 6402e83ee..d9d5099cd 100644 --- a/integ-test/src/integration/scala/org/opensearch/flint/spark/ppl/FlintSparkPPLBuiltInDateTimeFunctionITSuite.scala +++ b/integ-test/src/integration/scala/org/opensearch/flint/spark/ppl/FlintSparkPPLBuiltInDateTimeFunctionITSuite.scala @@ -398,7 +398,7 @@ class FlintSparkPPLBuiltInDateTimeFunctionITSuite | | eval last_wednesday = relative_timestamp("-1d@w3") | | eval actual_days_ago = timestampdiff(DAY, last_wednesday, now()) | | eval day_of_week = day_of_week(now()) - | | eval expected_days_ago = case(day_of_week >= 4, day_of_week - 4 else day_of_week + 3) + | | eval expected_days_ago = case(day_of_week > 4, day_of_week - 4 else day_of_week + 3) | | eval test_result = (expected_days_ago = actual_days_ago) | | fields test_result | | head 1