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

Fix metadata mismatch #1920

Merged
merged 8 commits into from
Nov 5, 2021

Conversation

jnke2016
Copy link
Contributor

@jnke2016 jnke2016 commented Nov 1, 2021

A recent change causes some of the dask's partition dataframe to have different types.
This PR ensures the dask partition after renumbering are the same as the initial dask dataframe

Note: Still looking for the root cause of this change

@jnke2016 jnke2016 requested a review from a team as a code owner November 1, 2021 23:57
@codecov-commenter
Copy link

codecov-commenter commented Nov 2, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.12@5465e22). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.12    #1920   +/-   ##
===============================================
  Coverage                ?   70.85%           
===============================================
  Files                   ?      143           
  Lines                   ?     9366           
  Branches                ?        0           
===============================================
  Hits                    ?     6636           
  Misses                  ?     2730           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5465e22...fc683ce. Read the comment docs.

@BradReesWork BradReesWork added 3 - Ready for Review improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 2, 2021
@BradReesWork BradReesWork added this to the 21.12 milestone Nov 2, 2021
if not isinstance(src_col_names, list):
src_col_names = [src_col_names]
dst_col_names = [dst_col_names]

id_type = df[src_col_names[0]].dtype
renumber_map = NumberMap(id_type=id_type)
if type(df) is cudf.DataFrame:
Copy link
Member

Choose a reason for hiding this comment

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

why not use isinstance?

Copy link
Contributor

@rlratzel rlratzel left a comment

Choose a reason for hiding this comment

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

Approved assuming Brad's feedback will be resolved.

@rlratzel
Copy link
Contributor

rlratzel commented Nov 4, 2021

rerun tests

@BradReesWork
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 99daea8 into rapidsai:branch-21.12 Nov 5, 2021
@jnke2016 jnke2016 deleted the fix_metadata_mismatch branch September 24, 2022 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants