pan3793 commented on code in PR #5920:
URL: https://github.com/apache/kyuubi/pull/5920#discussion_r1436090692


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/BackendServiceMetric.scala:
##########
@@ -197,6 +217,24 @@ trait BackendServiceMetric extends BackendService {
             case t: TI16Column => t.getValues.size()
             case t: TBoolColumn => t.getValues.size()
             case t: TByteColumn => t.getValues.size()
+            case t: TBinaryColumn
+                if resultFormat == "arrow" =>
+              t.getValues.asScala.map(listBuff => {
+                val batchBytes = listBuff.array()
+                val input = new ByteArrayInputStream(batchBytes)
+                val readChannel = new ReadChannel(Channels.newChannel(input))

Review Comment:
   The CPU/memory overhead looks high, it's dangerous to do such thing on 
Kyuubi server



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to