ion-elgreco opened a new issue, #7500:
URL: https://github.com/apache/arrow-rs/issues/7500

   **Describe the bug**
   With latest minor release the `filter_record_batch` function stopped 
working: 
https://github.com/delta-io/delta-rs/actions/runs/14999489487/job/42142313983?pr=3426#step:4:2506
   
   `cannot use StructArray::new_unchecked if there are no fields, length is 
unknown`
   
   **To Reproduce**
   Run delta-rs codebase and do cargo test.
   
   **Expected behavior**
   Being able to filter recordbatch by predicate.
   
   I tried doing this, to verify whether the recordbatch had fields, but it 
doesn't seem to be an issue with there being no fields
   
   ```rust
           if filtered.num_columns() > 0 {
               Ok(filter_record_batch(&filtered, &BooleanArray::from(keep))?)
           } else {
               Ok(filtered)
           }
   
   ```


-- 
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: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to