This is an automated email from the ASF dual-hosted git repository.
HyukjinKwon pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.1 by this push:
new cfff22202310 [SPARK-56755][SQL][TESTS][FOLLOWUP][4.1] Fix
ShowCreateTableSuite
cfff22202310 is described below
commit cfff22202310f548bd0aa50d3472f06a1591cb29
Author: Cheng Pan <[email protected]>
AuthorDate: Mon May 11 06:48:45 2026 +0900
[SPARK-56755][SQL][TESTS][FOLLOWUP][4.1] Fix ShowCreateTableSuite
### What changes were proposed in this pull request?
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.
### Why are the changes needed?
Fix tests.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
```
$ 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
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #55780 from pan3793/SPARK-56755-4.1.
Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
.../apache/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 583c2d49376e..ca4da12d5275 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))"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]