Skip to content

Fix skiprows issue with ORC Reader - #7359

Merged
rapids-bot[bot] merged 5 commits into
NVIDIA:branch-0.19from
ramakrishnap-nv:7343_orc_skiprows_issue
Feb 15, 2021
Merged

Fix skiprows issue with ORC Reader#7359
rapids-bot[bot] merged 5 commits into
NVIDIA:branch-0.19from
ramakrishnap-nv:7343_orc_skiprows_issue

Conversation

@ramakrishnap-nv

@ramakrishnap-nv ramakrishnap-nv commented Feb 9, 2021

Copy link
Copy Markdown
Contributor

closes #7343

The validity bits in streams are placed msb to lsb in a byte, [True, False, True. False. True, True, True, False] -> 10101110.
So, when it is being analyzed as 32 bit chunk, we can't apply mask directly, which caused this issue. __brev(__byte_perm(bits, 0, 0x0123)) takes care of that issue and rearranges the bits as per the expectation.

@ramakrishnap-nv ramakrishnap-nv added bug Something isn't working 3 - Ready for Review Ready for review by team Python Affects Python cuDF API. 4 - Needs cuDF (Python) Reviewer cuIO cuIO issue non-breaking Non-breaking change labels Feb 9, 2021
@ramakrishnap-nv
ramakrishnap-nv requested a review from a team as a code owner February 9, 2021 22:43
@ramakrishnap-nv ramakrishnap-nv self-assigned this Feb 9, 2021
@ramakrishnap-nv
ramakrishnap-nv requested a review from a team as a code owner February 9, 2021 22:43
@github-actions github-actions Bot added the libcudf Affects libcudf (C++/CUDA) code. label Feb 9, 2021
Comment thread python/cudf/cudf/tests/test_orc.py Outdated

@galipremsagar galipremsagar 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.

LGTM! Thanks @rgsl888prabhu for the fix!

Comment thread cpp/src/io/orc/stripe_data.cu
Comment thread cpp/src/io/orc/stripe_data.cu Outdated
Comment thread cpp/src/io/orc/stripe_data.cu Outdated
import pandas as pd
import pyarrow as pa
import pyarrow.orc
import pyorc

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.

CI fails because of this import

ModuleNotFoundError: No module named 'pyorc'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Created a PR for it rapidsai/integration#215

@vuule vuule 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.

approved once more, for good measure :)

@ramakrishnap-nv

Copy link
Copy Markdown
Contributor Author

rerun tests

@codecov

codecov Bot commented Feb 15, 2021

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@              Coverage Diff               @@
##             branch-0.19    #7359   +/-   ##
==============================================
  Coverage               ?   82.19%           
==============================================
  Files                  ?      100           
  Lines                  ?    16968           
  Branches               ?        0           
==============================================
  Hits                   ?    13947           
  Misses                 ?     3021           
  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 eb8dc88...92e3e0c. Read the comment docs.

@harrism

harrism commented Feb 15, 2021

Copy link
Copy Markdown
Contributor

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit a08ec0e into NVIDIA:branch-0.19 Feb 15, 2021
@vyasr vyasr added 4 - Needs Review Waiting for reviewer to review or respond and removed 4 - Needs cuIO Reviewer labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team 4 - Needs Review Waiting for reviewer to review or respond bug Something isn't working cuIO cuIO issue libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants