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

dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-connect-swift.git


The following commit(s) were added to refs/heads/main by this push:
     new feddf09  [SPARK-51994] Fix `ArrowType.Info.==` to support complex types
feddf09 is described below

commit feddf099754531c04a8191df48ca1cece7324688
Author: Dongjoon Hyun <dongj...@apache.org>
AuthorDate: Sat May 3 15:52:33 2025 -0700

    [SPARK-51994] Fix `ArrowType.Info.==` to support complex types
    
    ### What changes were proposed in this pull request?
    
    This PR aims to fix `ArrowType.Info.==` to support complex types.
    
    ### Why are the changes needed?
    
    Previously, it returns false for the complex types like `struct`.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #110 from dongjoon-hyun/SPARK-51994.
    
    Authored-by: Dongjoon Hyun <dongj...@apache.org>
    Signed-off-by: Dongjoon Hyun <dongj...@apache.org>
---
 Sources/SparkConnect/ArrowType.swift | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Sources/SparkConnect/ArrowType.swift 
b/Sources/SparkConnect/ArrowType.swift
index 5272779..8595b19 100644
--- a/Sources/SparkConnect/ArrowType.swift
+++ b/Sources/SparkConnect/ArrowType.swift
@@ -388,6 +388,8 @@ extension ArrowType.Info: Equatable {
       return lhsId == rhsId
     case (.timeInfo(let lhsId), .timeInfo(let rhsId)):
       return lhsId == rhsId
+    case (.complexInfo(let lhsId), .complexInfo(let rhsId)):
+        return lhsId == rhsId
     default:
       return false
     }


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

Reply via email to