Skip to content

Commit

Permalink
docs: explain this special case in comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
  • Loading branch information
waynexia committed Aug 7, 2024
1 parent 2b2c5c2 commit 0c7a579
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/array_decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,8 @@ impl NaiveStripeDecoder {
if remaining == 0 {
Ok(None)
} else {
// In case of empty projection, we need to create a RecordBatch with `row_count` only
// to reflect the row number
Ok(Some(
RecordBatch::try_new_with_options(
Arc::clone(&self.schema_ref),
Expand Down

0 comments on commit 0c7a579

Please sign in to comment.