Skip to content

Extract result bug - #815

Merged
thomasstvr merged 2 commits into
mainfrom
Extract-Result-Bug
Oct 27, 2025
Merged

thomasstvr merged 2 commits into
mainfrom
Extract-Result-Bug

Conversation

@thomasstvr

Copy link
Copy Markdown
Collaborator

No description provided.

@thomasstvr
thomasstvr requested a review from Copilot October 27, 2025 15:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug in the custom extraction functionality where duplicate results from multiple input columns were not being properly deduplicated. The fix ensures that when the same value is extracted from multiple input columns, it only appears once in the final output.

Key Changes:

  • Modified the result concatenation logic to remove duplicate extracted values using dict.fromkeys()
  • Added test coverage to verify deduplication works correctly with multiple input columns containing the same match

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
wrangles/recipe_wrangles/extract.py Updated concatenation logic to deduplicate extracted results from multiple columns
tests/recipes/wrangles/test_extract.py Added test case verifying deduplication of matches across multiple input columns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread wrangles/recipe_wrangles/extract.py
@thomasstvr
thomasstvr requested review from ChrisWRWX and cerdamario13 and removed request for ChrisWRWX October 27, 2025 16:08
@thomasstvr
thomasstvr merged commit 9046c3a into main Oct 27, 2025
60 of 66 checks passed
@thomasstvr
thomasstvr deleted the Extract-Result-Bug branch October 27, 2025 16:13
@thomasstvr thomasstvr linked an issue Oct 27, 2025 that may be closed by this pull request
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.

Extract.custom multiple inputs yields duplicate outputs

3 participants