Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ededup removes all samples if the document_id is an int #868

Open
2 tasks done
burn2l opened this issue Dec 10, 2024 · 0 comments
Open
2 tasks done

[Bug] ededup removes all samples if the document_id is an int #868

burn2l opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@burn2l
Copy link

burn2l commented Dec 10, 2024

Search before asking

  • I searched the issues and found no similar issues.

Component

Transforms/universal/ededup

What happened + What you expected to happen

I used doc_id to create a doc_id_int_column and used that as the ededup_doc_id_column and ededup deleted all my samples.

Reproduction script

I changed test_ededup_python.py to use an integer column, e.g. int_column_name_cli_param: "Unnamed: 0"
which then deleted all 5 samples, while after my fix it removed just the 2 duplicates. The test still fails as the "removed" column with the 2 integer decides doesn't match the expected one.

Anything else

Can be fixed by changing line 157 in ededup_transform_base.py to ensure string ids are cached:
hd[h] = str(doc_id)
(Note that the variable holding the column name has "int" in its name)

OS

Red Hat Enterprise Linux (RHEL)

Python

3.11.x

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@burn2l burn2l added the bug Something isn't working label Dec 10, 2024
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

No branches or pull requests

1 participant