Skip to content

fix: reject unsupported filter argument in add_columns#5187

Open
LuciferYang wants to merge 1 commit into
lance-format:mainfrom
LuciferYang:fix/add-columns-reject-filter
Open

fix: reject unsupported filter argument in add_columns#5187
LuciferYang wants to merge 1 commit into
lance-format:mainfrom
LuciferYang:fix/add-columns-reject-filter

Conversation

@LuciferYang

Copy link
Copy Markdown

add_columns takes a filter argument and documents it, but nothing in the function body ever uses it. The filter is silently dropped and every fragment is processed anyway, so a call that looks like it's narrowing the work quietly does the opposite.

Instead of ignoring it, add_columns now raises NotImplementedError when filter is not None, and the docstring is updated to note the argument is reserved for when get_fragments supports filtering. The default filter=None path is unchanged.

Added a test that asserts passing a filter raises; the existing test still covers the normal filter=None flow.

The filter parameter was accepted and documented but never used, so any
filter was silently dropped and every fragment was processed. Raise
NotImplementedError instead of silently ignoring it.
@github-actions github-actions Bot added the bug Something isn't working label Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant