Skip to content

Honor remove_duplicates when searching nested data - #299

Open
codewithfourtix wants to merge 1 commit into
google-deepmind:mainfrom
codewithfourtix:fix-nested-data-duplicate-option
Open

Honor remove_duplicates when searching nested data#299
codewithfourtix wants to merge 1 commit into
google-deepmind:mainfrom
codewithfourtix:fix-nested-data-duplicate-option

Conversation

@codewithfourtix

Copy link
Copy Markdown
Contributor

Recursive calls reset remove_duplicates to its default, so passing False still removes nested matches and can crash on scalar values. Collect matches without deduplicating during recursion, then apply the requested behavior once at the top.

Adds tests for nested duplicates, scalar values, and the default deduplication behavior.

Signed-off-by: Ali Zulfiqar <codewithfourtix@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant