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 {
173173 let str = column. array as! AsString
174174 if column. data. isNull ( i) {
175175 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) ] " )
176179 } else {
177180 values. append ( str. asString ( i) )
178181 }
@@ -201,6 +204,9 @@ public actor DataFrame: Sendable {
201204 let str = column. array as! AsString
202205 if column. data. isNull ( i) {
203206 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) ] " )
204210 } else {
205211 values. append ( str. asString ( i) )
206212 }
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