This is an automated email from the ASF dual-hosted git repository.

pan3793 pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new 5a785d63235d [SPARK-56755][SQL][TESTS][FOLLOWUP][4.0] Fix 
ShowCreateTableSuite
5a785d63235d is described below

commit 5a785d63235d816358153a38640d34e578c725be
Author: Cheng Pan <[email protected]>
AuthorDate: Mon May 11 15:46:38 2026 +0800

    [SPARK-56755][SQL][TESTS][FOLLOWUP][4.0] Fix ShowCreateTableSuite
    
    Port https://github.com/apache/spark/pull/55780 to branch-4.0
    
    ### 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/branch-4.0, 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 #55791 from pan3793/SPARK-56755-followup-4.0.
    
    Authored-by: Cheng Pan <[email protected]>
    Signed-off-by: Cheng Pan <[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 ba136c34a2f1..0a296ecd7e31 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]

Reply via email to