Skip to content

fix: avoid panic on empty list LABEL_LIST filters#5914

Merged
wjones127 merged 4 commits intolance-format:mainfrom
fenfeng9:fix/label-list-empty-list-filters
Feb 10, 2026
Merged

fix: avoid panic on empty list LABEL_LIST filters#5914
wjones127 merged 4 commits intolance-format:mainfrom
fenfeng9:fix/label-list-empty-list-filters

Conversation

@fenfeng9
Copy link
Copy Markdown
Contributor

@fenfeng9 fenfeng9 commented Feb 8, 2026

array_has_any/all(labels, []) yields an empty label-list query; LabelList index merge (set_union / set_intersection) unwraps the first element and panics on an empty iterator.

Skip LABEL_LIST index parsing for empty lists to avoid the panic and fall back to normal execution.

@github-actions github-actions Bot added bug Something isn't working python labels Feb 8, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 8, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
rust/lance-index/src/scalar/expression.rs 66.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@fenfeng9
Copy link
Copy Markdown
Contributor Author

Hi @westonpace, could you please review this when you have a moment? Thanks!

@wjones127 wjones127 merged commit 0471e0e into lance-format:main Feb 10, 2026
28 of 29 checks passed
wjones127 added a commit to wjones127/lance that referenced this pull request Feb 10, 2026
LabelList index still has issues with null element handling despite PR lance-format#5867 and PR lance-format#5914.
Tests pass without LabelList index. Re-enable when fully fixed.

Issue: lance-format#5682

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants