jorisvandenbossche opened a new pull request #7523:
URL: https://github.com/apache/arrow/pull/7523


   Not a polished PR, just a quick try (in cython, since that's faster for me) 
to expose the RowGroupInfo statistics in Python + convert the expression into 
min/max information. More as food for discussion for now.
   
   What this enables:
   
   ```
   In [1]: import pyarrow.dataset as ds 
      ...: dataset = ds.parquet_dataset("test_parquet_dask/_metadata", 
partitioning="hive") 
      ...: fragment = list(dataset.get_fragments())[0]  
      ...: rg = fragment.row_groups[0]  
   
   In [2]: ds.get_min_max_statistics(rg.statistics) 
   Out[2]: 
   [{'col': {'min': -1.43563008497128}},
    {'col': {'max': 1.2929964609736964}},
    {'index': {'min': 335}},
    {'index': {'max': 359}}]
   ```


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

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


Reply via email to