Skip to content

Commit feddf09

Browse files
committed
[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 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent b741ae5 commit feddf09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SparkConnect/ArrowType.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ extension ArrowType.Info: Equatable {
388388
return lhsId == rhsId
389389
case (.timeInfo(let lhsId), .timeInfo(let rhsId)):
390390
return lhsId == rhsId
391+
case (.complexInfo(let lhsId), .complexInfo(let rhsId)):
392+
return lhsId == rhsId
391393
default:
392394
return false
393395
}

0 commit comments

Comments
 (0)