From 01a497f973ac963bef58c33ac6a33bc027baf1c5 Mon Sep 17 00:00:00 2001 From: Jovan Markovic Date: Tue, 22 Oct 2024 11:17:33 +0200 Subject: [PATCH] Fix test --- .../src/test/scala/org/apache/spark/sql/CollationSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala index ad1168e81183c..dc5052fc61555 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/CollationSuite.scala @@ -520,8 +520,8 @@ class CollationSuite extends DatasourceV2SQLBase with AdaptiveSparkPlanHelper { val tableName = "testcat.alter_column_tbl" withTable(tableName) { sql(s"CREATE TABLE $tableName (c1 STRING) USING PARQUET") - sql(s"ALTER TABLE $tableName ALTER COLUMN c1 TYPE STRING COLLATE UTF8_LCASE") sql(s"INSERT INTO $tableName VALUES ('a')") + sql(s"ALTER TABLE $tableName ALTER COLUMN c1 TYPE STRING COLLATE UTF8_LCASE") checkAnswer(sql(s"SELECT collation(c1) FROM $tableName"), Seq(Row("UTF8_LCASE"))) } }