Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sources/SparkConnect/ProtoUtil.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func fromProto( // swiftlint:disable:this cyclomatic_complexity
let arrowUnit: ArrowTime64Unit = timeType.unit == .microsecond ? .microseconds : .nanoseconds
arrowType = ArrowTypeTime64(arrowUnit)
}
case .struct_:
arrowType = ArrowType(ArrowType.ArrowStruct)
default:
arrowType = ArrowType(ArrowType.ArrowUnknown)
}
Expand Down
1 change: 1 addition & 0 deletions Tests/SparkConnectTests/Resources/queries/struct.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SELECT struct(1), struct(2, struct(3))
1 change: 1 addition & 0 deletions Tests/SparkConnectTests/Resources/queries/struct.sql.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[["{1}","{2,{3}}"]]
Loading