Skip to content

Commit

Permalink
Disallow fragment scan on index query.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachengdb committed Jul 23, 2024
1 parent 770e6ed commit ba65a81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rust/lance/src/dataset/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,10 @@ impl Scanner {
// This tests if any of the fragments are missing the physical_rows property (old style)
// If they are then we cannot use scalar indices
if filter_plan.index_query.is_some() {
// Index scan doesn't honor the fragment allowlist today.
// TODO: we could filter the index scan results to only include the allowed fragments.
self.ensure_not_fragment_scan()?;

let fragments = if let Some(fragments) = self.fragments.as_ref() {
fragments
} else {
Expand Down

0 comments on commit ba65a81

Please sign in to comment.