From 934062eca31b7cc3c3057914178b2ba0e1211f51 Mon Sep 17 00:00:00 2001 From: Cheng Pan Date: Mon, 11 May 2026 06:48:45 +0900 Subject: [PATCH] [SPARK-56755][SQL][TESTS][FOLLOWUP][4.0] Fix ShowCreateTableSuite A follow-up of the backport (https://github.com/apache/spark/pull/55718) to fix the test - SPARK-55372 (4.2.0) changed the output of `SHOW CREATE TABLE ...` output for `STRING` columns, it does not go to branch-4.1, so the test case should be modified. Fix tests. No. ``` $ build/sbt "sql/testOnly *ShowCreateTableSuite" [info] Run completed in 11 seconds, 832 milliseconds. [info] Total number of tests run: 46 [info] Suites: completed 2, aborted 0 [info] Tests: succeeded 46, failed 0, canceled 0, ignored 0, pending 0 [info] All tests passed. [success] Total time: 304 s (0:05:04.0), completed May 9, 2026, 5:36:26 PM ``` No. Closes #55780 from pan3793/SPARK-56755-4.1. Authored-by: Cheng Pan Signed-off-by: Hyukjin Kwon --- .../spark/sql/execution/command/v2/ShowCreateTableSuite.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/ShowCreateTableSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/ShowCreateTableSuite.scala index ba136c34a2f1d..0a296ecd7e314 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/ShowCreateTableSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/ShowCreateTableSuite.scala @@ -154,7 +154,7 @@ class ShowCreateTableSuite extends command.ShowCreateTableSuiteBase with Command assert(showDDL === Array( s"CREATE TABLE $t (", "a INT,", - "b STRING COLLATE UTF8_BINARY,", + "b STRING,", "ts TIMESTAMP)", defaultUsing, "PARTITIONED BY (bucket(4, a), bucket(8, b), years(ts))"