jinchengchenghh commented on code in PR #6106:
URL: https://github.com/apache/incubator-gluten/pull/6106#discussion_r1643593521


##########
backends-velox/src/main/scala/org/apache/gluten/execution/RowToVeloxColumnarExec.scala:
##########
@@ -145,10 +145,20 @@ object RowToVeloxColumnarExec {
         }
       }
 
-      def nativeConvert(row: UnsafeRow): ColumnarBatch = {
+      def convertToUnsafeRow(row: InternalRow): UnsafeRow = {
+        row match {
+          case unsafeRow: UnsafeRow => unsafeRow
+          case _ =>
+            converter.apply(row)
+        }
+      }
+
+      override def next(): ColumnarBatch = {
+        val firstRow = it.next()

Review Comment:
   Because we need to get estimate row size by the first row



-- 
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