You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2025/11/14 00:19:13 UTC

(spark) branch branch-4.1 updated: [SPARK-54209][CONNECT] [Followup] Fix linter error in `SparkConnectJdbcDataTypeSuite`

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

dongjoon 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 2e846d282c66 [SPARK-54209][CONNECT] [Followup] Fix linter error in `SparkConnectJdbcDataTypeSuite`
2e846d282c66 is described below

commit 2e846d282c66f9e7b92478f7eb4b1b0b767bc961
Author: vinodkc <vi...@gmail.com>
AuthorDate: Thu Nov 13 16:18:53 2025 -0800

    [SPARK-54209][CONNECT] [Followup] Fix linter error in `SparkConnectJdbcDataTypeSuite`
    
    ### What changes were proposed in this pull request?
    
    Followup of https://github.com/apache/spark/pull/53046 to fix compiler error
    ### Why are the changes needed?
    
    To fix build failure
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    Built locally and ran `./dev/lint-scala`
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No
    
    Closes #53049 from vinodkc/br_fix_lint_SPARK-54209.
    
    Authored-by: vinodkc <vi...@gmail.com>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
    (cherry picked from commit 87b3b94232436528f88c9a7aa7ee70758b85a33a)
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 .../sql/connect/client/jdbc/SparkConnectJdbcDataTypeSuite.scala     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sql/connect/client/jdbc/src/test/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectJdbcDataTypeSuite.scala b/sql/connect/client/jdbc/src/test/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectJdbcDataTypeSuite.scala
index 79b5eb8a052b..3a02f78c4383 100644
--- a/sql/connect/client/jdbc/src/test/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectJdbcDataTypeSuite.scala
+++ b/sql/connect/client/jdbc/src/test/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectJdbcDataTypeSuite.scala
@@ -251,7 +251,7 @@ class SparkConnectJdbcDataTypeSuite extends ConnectFunSuite with RemoteSparkSess
           assert(metaData.getScale(1) === scale)
           assert(metaData.getColumnDisplaySize(1) === expectedColumnDisplaySize)
           assert(metaData.getColumnDisplaySize(1) >= value.size)
-      }
+        }
     }
   }
 
@@ -270,7 +270,7 @@ class SparkConnectJdbcDataTypeSuite extends ConnectFunSuite with RemoteSparkSess
       ("date '2025-11-15'", (rs: ResultSet) => rs.getBytes(999)),
       ("time '12:34:56.123456'", (rs: ResultSet) => rs.getBytes(999)),
       ("timestamp '2025-11-15 10:30:45.123456'", (rs: ResultSet) => rs.getTimestamp(999)),
-      ("timestamp_ntz '2025-11-15 10:30:45.789012'", (rs: ResultSet) => rs.getTimestamp(999)),
+      ("timestamp_ntz '2025-11-15 10:30:45.789012'", (rs: ResultSet) => rs.getTimestamp(999))
     ).foreach {
       case (query, getter) =>
         withExecuteQuery(s"SELECT $query") { rs =>
@@ -570,7 +570,7 @@ class SparkConnectJdbcDataTypeSuite extends ConnectFunSuite with RemoteSparkSess
     }
   }
 
-test("get timestamp type") {
+  test("get timestamp type") {
     withExecuteQuery("SELECT timestamp '2025-11-15 10:30:45.123456'") { rs =>
       assert(rs.next())
       val timestamp = rs.getTimestamp(1)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org