lance-format/lance
Auf GitHub ansehenDon't materialize any data on `count_rows` if the filter can be satisfied by a scalar index
Open
#2.682 geöffnet am 2. Aug. 2024
good first issuehelp wanted
Repository-Metriken
- Stars
- (6.582 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 1h) (219 gemergte PRs in 30 T)
Beschreibung
If we can satisfy a filter with a scalar index then we should be able to implement a fast path for count_rows where we simply return the size of the allow_list or even possibly subtract the size of the block_list from the metadata-only count_rows (might be some tricky bits if there are deletion vectors) to quickly answer queries like count_rows("x != 'foo'").