duongcongtoai commented on issue #17446:
URL: https://github.com/apache/datafusion/issues/17446#issuecomment-3504689479

   ```
   toai@salamancabrothehood:~/proj/rust/playpy$ bash test.sh sample-1m.parquet 
   Benchmark 1: uv run polar.py sample-1m.parquet
     Time (mean ± σ):     867.0 ms ±  28.5 ms    [User: 2599.8 ms, System: 
800.0 ms]
     Range (min … max):   835.4 ms … 916.0 ms    10 runs
    
   Benchmark 2: uv run df.py sample-1m.parquet
     Time (mean ± σ):      1.445 s ±  0.020 s    [User: 4.682 s, System: 0.537 
s]
     Range (min … max):    1.400 s …  1.472 s    10 runs
    
   Summary
     uv run polar.py sample-1m.parquet ran
       1.67 ± 0.06 times faster than uv run df.py sample-1m.parquet
   ```
   I apply a patch in arrow-rs to fix Dictionary error and here is the 
performance improvement
   
   <img width="1741" height="766" alt="Image" 
src="https://github.com/user-attachments/assets/2f0d2541-1173-4a1b-86fe-06ef2245c1b0";
 />
   
   ArrayAgg ran within the first 600-700ms, the rest is the time for writing 
Parquet file, which is another point for improvement.
   
   With this result, i think this PR is good to push for review: 
https://github.com/apache/arrow-rs/pull/8652


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to