From 5f14bc861ef6d4e31da115a11371d2547b01ad69 Mon Sep 17 00:00:00 2001 From: Chen Dai Date: Thu, 31 Oct 2024 13:43:14 -0700 Subject: [PATCH] Modify error message wording Signed-off-by: Chen Dai --- .../opensearch/flint/spark/mv/FlintSparkMaterializedView.scala | 2 +- .../flint/spark/FlintSparkMaterializedViewSqlITSuite.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flint-spark-integration/src/main/scala/org/opensearch/flint/spark/mv/FlintSparkMaterializedView.scala b/flint-spark-integration/src/main/scala/org/opensearch/flint/spark/mv/FlintSparkMaterializedView.scala index 7f69e40b4..2125c6878 100644 --- a/flint-spark-integration/src/main/scala/org/opensearch/flint/spark/mv/FlintSparkMaterializedView.scala +++ b/flint-spark-integration/src/main/scala/org/opensearch/flint/spark/mv/FlintSparkMaterializedView.scala @@ -135,7 +135,7 @@ case class FlintSparkMaterializedView( Some(agg, attr) case _ => throw new IllegalArgumentException( - s"Tumble function only supports time column, but found: $timeCol") + s"Tumble function only supports simple timestamp column, but found: $timeCol") } } diff --git a/integ-test/src/integration/scala/org/opensearch/flint/spark/FlintSparkMaterializedViewSqlITSuite.scala b/integ-test/src/integration/scala/org/opensearch/flint/spark/FlintSparkMaterializedViewSqlITSuite.scala index acd438eca..ae2e53090 100644 --- a/integ-test/src/integration/scala/org/opensearch/flint/spark/FlintSparkMaterializedViewSqlITSuite.scala +++ b/integ-test/src/integration/scala/org/opensearch/flint/spark/FlintSparkMaterializedViewSqlITSuite.scala @@ -472,7 +472,7 @@ class FlintSparkMaterializedViewSqlITSuite extends FlintSparkSuite { |""".stripMargin) } ex.getCause should have message - "Tumble function only supports time column, but found: cast('timestamp as timestamp)" + "Tumble function only supports simple timestamp column, but found: cast('timestamp as timestamp)" } } }