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: ColumnReader.loadVector should initiate CometDictionary after re-import arrays #473

Merged
merged 1 commit into from
May 25, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented May 25, 2024

Which issue does this PR close?

Closes #474.

Rationale for this change

What changes are included in this PR?

How are these changes tested?

@viirya
Copy link
Member Author

viirya commented May 25, 2024

cc @sunchao

@viirya viirya force-pushed the fix_columnar_reader branch from 377982a to 9a2a851 Compare May 25, 2024 19:07
CometPlainVector dictionaryVector =
new CometPlainVector(arrowDictionary.getVector(), useDecimal128, isUuid);
dictionary = new CometDictionary(dictionaryVector);

Copy link
Member Author

Choose a reason for hiding this comment

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

The test failure is in TPCDSQuerySuite in #437. I don't have a simple reproducible test case for it. But I think the change is straightforward and safe.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 34.05%. Comparing base (9125e6a) to head (9a2a851).
Report is 2 commits behind head on main.

Files Patch % Lines
...in/java/org/apache/comet/parquet/ColumnReader.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main     #473   +/-   ##
=========================================
  Coverage     34.05%   34.05%           
  Complexity      859      859           
=========================================
  Files           116      116           
  Lines         38680    38679    -1     
  Branches       8568     8567    -1     
=========================================
  Hits          13171    13171           
+ Misses        22746    22745    -1     
  Partials       2763     2763           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@viirya viirya merged commit 5bfe46d into apache:main May 25, 2024
40 checks passed
@viirya viirya deleted the fix_columnar_reader branch May 25, 2024 21:05
@viirya
Copy link
Member Author

viirya commented May 25, 2024

Merged. Thanks @andygrove @sunchao

@andygrove
Copy link
Member

@viirya Just fyi, this commit caused a large regression for me in local runs of TPC-H. I will share full details tomorrow.

before

Screenshot from 2024-05-27 13-23-16

after

Screenshot from 2024-05-27 13-23-31

@viirya
Copy link
Member Author

viirya commented May 28, 2024

I got the reason why it has regression. I will propose a fix.

himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
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.

ColumnReader.loadVector should initiate CometDictionary after re-import arrays
4 participants