Fly-a-Kite opened a new issue, #50043:
URL: https://github.com/apache/arrow/issues/50043

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   ## Environment
   
   ```text
   pyarrow: 24.0.0
   Python: 3.12.3
   Platform: Ubuntu24.04
   ```
   
   `24.0.0` was the latest PyPI release when reproduced on 2026-05-26.
   
   ## Reproducer
   
   ```python
   import pyarrow as pa
   import pyarrow.compute as pc
   
   base = pa.table({"g": [99, 10, 10], "flag": [True, False, None]})
   sliced = base.slice(1)
   rebuilt = pa.table(sliced.to_pydict())
   
   def grouped_any(table):
       return (
           table.group_by("g", use_threads=False)
           .aggregate([("flag", "any")])
           .column("flag_any")
           .to_pylist()
       )
   
   print("offset:", sliced["flag"].chunk(0).offset)
   print("scalar any:", pc.any(pa.array([False, None])).as_py())
   print("sliced:", grouped_any(sliced))
   print("rebuilt:", grouped_any(rebuilt))
   ```
   
   ## Actual Output
   
   ```text
   offset: 1
   scalar any: False
   sliced: [True]
   rebuilt: [False]
   ```
   
   ## Expected Output
   
   ```text
   sliced: [False]
   rebuilt: [False]
   ```
   
   After `slice(1)`, the only rows in group `g=10` have `flag` values
   `[False, None]`. The grouped `any` result should therefore agree with scalar
   `compute.any` and the zero-offset rebuilt table.
   
   ### Component(s)
   
   Python


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