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

Ensure correct data type #2847

Merged
merged 6 commits into from
Oct 26, 2022

Conversation

jnke2016
Copy link
Contributor

@jnke2016 jnke2016 commented Oct 25, 2022

The global_id column representing the renumbered edgelist are of type int64 by default and this is problematic if the user's input dataframe is of type int32.

This PR:

  1. Ensures the renumbered edgelist matches the original edgelist dtype unless non integers vertices are provided.
  2. Add tests verifying the above.
  3. Ensures the source's dtype in BFS matches edgelist dtype.

closes #2845
close #2846

@jnke2016 jnke2016 requested a review from a team as a code owner October 25, 2022 03:05
@codecov-commenter
Copy link

codecov-commenter commented Oct 25, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.12@d86c933). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-22.12    #2847   +/-   ##
===============================================
  Coverage                ?   60.41%           
===============================================
  Files                   ?      114           
  Lines                   ?     6551           
  Branches                ?        0           
===============================================
  Hits                    ?     3958           
  Misses                  ?     2593           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@BradReesWork BradReesWork added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Oct 26, 2022
@BradReesWork
Copy link
Member

@gpucibot merge

@rapids-bot rapids-bot bot merged commit d035869 into rapidsai:branch-22.12 Oct 26, 2022
rapids-bot bot pushed a commit that referenced this pull request Nov 3, 2022
MG testing resulted in discovering an assumption in the C API about types that needs to be validated.  Added checks to BFS and SSSP so that the type checks will be done right away before trying to interpret the data incorrectly.

Won't pass until #2847 is addressed

Authors:
  - Chuck Hastings (https://github.com/ChuckHastings)

Approvers:
  - Seunghwa Kang (https://github.com/seunghwak)
  - Joseph Nke (https://github.com/jnke2016)
  - Rick Ratzel (https://github.com/rlratzel)

URL: #2844
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.

[BUG] Hardcoded source type when in BFS [BUG] Type mismatch when renumbering the dataframe
4 participants