File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
Tests/SparkConnectTests/Resources/queries Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,9 @@ public actor DataFrame: Sendable {
173
173
let str = column. array as! AsString
174
174
if column. data. isNull ( i) {
175
175
values. append ( nil )
176
+ } else if column. data. type. info == ArrowType . ArrowBinary {
177
+ let binary = str. asString ( i) . utf8. map { String ( format: " %02x " , $0) } . joined ( separator: " " )
178
+ values. append ( " [ \( binary) ] " )
176
179
} else {
177
180
values. append ( str. asString ( i) )
178
181
}
@@ -201,6 +204,9 @@ public actor DataFrame: Sendable {
201
204
let str = column. array as! AsString
202
205
if column. data. isNull ( i) {
203
206
values. append ( " NULL " )
207
+ } else if column. data. type. info == ArrowType . ArrowBinary {
208
+ let binary = str. asString ( i) . utf8. map { String ( format: " %02x " , $0) } . joined ( separator: " " )
209
+ values. append ( " [ \( binary) ] " )
204
210
} else {
205
211
values. append ( str. asString ( i) )
206
212
}
Original file line number Diff line number Diff line change
1
+ SELECT binary(' abc' )
Original file line number Diff line number Diff line change
1
+ [[" [61 62 63]" ]]
You can’t perform that action at this time.
0 commit comments