kszucs opened a new pull request, #1724:
URL: https://github.com/apache/arrow-go/pull/1724

   ### Rationale for this change
   
   `FlushCurrentPage` with nothing buffered, e.g. called twice in a row, writes 
an empty data page, or panics with an index out of range for a column with 
definition or repetition levels and V1 data pages. Content-defined chunking 
(#1469) depends on this fix.
   
   ### What changes are included in this PR?
   
   `flushCurrentPage` returns early when nothing is buffered, as 
`FlushBufferedDataPages` already does.
   
   ### Are these changes tested?
   
   Yes. `TestFlushCurrentPageWithoutBufferedValues` writes values, flushes 
twice and expects a single page. On main, the required column case writes an 
empty second page and the optional case panics.
   
   ### Are there any user-facing changes?
   
   `FlushCurrentPage` no longer writes an empty page or panics when nothing is 
buffered.
   
   Assisted by [Claude Code](https://claude.com/claude-code).
   


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

Reply via email to