Skip to content

Commit 71f2970

Browse files
committed
[SPARK-51763] Support ArrowStruct type
1 parent ebffbbe commit 71f2970

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

Sources/SparkConnect/ProtoUtil.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ func fromProto( // swiftlint:disable:this cyclomatic_complexity
6464
let arrowUnit: ArrowTime64Unit = timeType.unit == .microsecond ? .microseconds : .nanoseconds
6565
arrowType = ArrowTypeTime64(arrowUnit)
6666
}
67+
case .struct_:
68+
arrowType = ArrowType(ArrowType.ArrowStruct)
6769
default:
6870
arrowType = ArrowType(ArrowType.ArrowUnknown)
6971
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT struct(1), struct(2, struct(3))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[["{1}","{2,{3}}"]]

0 commit comments

Comments
 (0)