LuciferYang commented on code in PR #13723:
URL: https://github.com/apache/gluten/pull/13723#discussion_r4705458320


##########
cpp/velox/operators/serializer/VeloxColumnarBatchSerializer.cc:
##########
@@ -854,10 +867,21 @@ std::vector<uint8_t> 
VeloxColumnarBatchSerializer::framedSerializeV3Impl(
   framed.insert(framed.end(), statsBlob.begin(), statsBlob.end());
   pushU32LE(framed, numRows);
   pushU32LE(framed, numCols);
+  // Serialize each column straight into the frame, then fill in its length 
prefix.
+  AppendToVectorBuf frameBuf(framed);
+  std::ostream frameStream(&frameBuf);

Review Comment:
   Added in 5bedada0a. Same result on libc++ and libstdc++ here: with the mask 
set, the `std::bad_alloc` reaches the caller. The `good()` check after each 
column still catches failbit.



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