lancedb / lance

Modern columnar data format for ML and LLMs implemented in Rust. Convert from parquet in 2 lines of code for 100x faster random access, vector index, and data versioning. Compatible with Pandas, DuckDB, Polars, Pyarrow, and PyTorch with more integrations coming..
https://lancedb.github.io/lance/
Apache License 2.0
3.97k stars 224 forks source link

chore: add expect_stat, expect_single_stat in GetStat trait #3126

Open broccoliSpicy opened 1 week ago

broccoliSpicy commented 1 week ago

This PR tries to add helper function expect_stat and expect_single_stat to make DataBlock statistics easier to use.

codecov-commenter commented 6 days ago

Codecov Report

Attention: Patch coverage is 94.25837% with 12 lines in your changes missing coverage. Please review.

Project coverage is 77.92%. Comparing base (f257489) to head (9e8784f).

Files with missing lines Patch % Lines
rust/lance-encoding/src/statistics.rs 94.08% 11 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3126 +/- ## ======================================== Coverage 77.91% 77.92% ======================================== Files 240 240 Lines 81564 81336 -228 Branches 81564 81336 -228 ======================================== - Hits 63550 63379 -171 + Misses 14806 14748 -58 - Partials 3208 3209 +1 ``` | [Flag](https://app.codecov.io/gh/lancedb/lance/pull/3126/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lancedb) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/lancedb/lance/pull/3126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lancedb) | `77.92% <94.25%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=lancedb#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.