dbtsai commented on code in PR #50080: URL: https://github.com/apache/spark/pull/50080#discussion_r1971043755
########## sql/catalyst/src/main/scala/org/apache/spark/sql/execution/arrow/ArrowWriter.scala: ########## @@ -112,6 +112,16 @@ class ArrowWriter(val root: VectorSchemaRoot, fields: Array[ArrowFieldWriter]) { count += 1 } + def sizeInBytes(): Int = { + var i = 0 + var bytes = 0 Review Comment: This represents the size of a single row and should work for primitive types. But what if we have a string or binary type, which can vary in size? -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org