rustyconover commented on issue #44961:
URL: https://github.com/apache/arrow/issues/44961#issuecomment-2537852723

   As requested here is a simple reproducer:
   
   ```python
   import pyarrow as pa
   import pyarrow.compute as pc
   import pyarrow.dataset as ds
   
   # Example data
   data = [["peanuts", "shellfish", "gluten"], ["dust", "pollen"], ["cats", 
"dogs", "feathers"], []]
   
   # Create a PyArrow array
   allergies_array = pa.array(data, type=pa.list_(pa.string()))
   
   # Create a PyArrow table
   table = pa.Table.from_arrays([allergies_array], names=["allergies"])
   
   # Create a PyArrow dataset (in-memory)
   dataset = ds.dataset(table)
   
   # Filter for rows where the "allergies" column is empty
   filter = pc.equal(pc.count(pc.field("allergies"), mode="all"), 0)
   
   reader = dataset.scanner(filter=filter).to_table()
   
   # This should be one row.
   print(reader)
   ```
   
   What the filter expression does is trying to retry rows where the allergies 
column has zero entries.


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