Skip to content

fix: ColumnReader.loadVector should initiate CometDictionary after re-import arrays#473

Merged
viirya merged 1 commit intoapache:mainfrom
viirya:fix_columnar_reader
May 25, 2024
Merged

fix: ColumnReader.loadVector should initiate CometDictionary after re-import arrays#473
viirya merged 1 commit intoapache:mainfrom
viirya:fix_columnar_reader

Conversation

@viirya
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

codecov-commenter commented May 25, 2024

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.05%. Comparing base (9125e6a) to head (9a2a851).
⚠️ Report is 1034 commits behind head on main.

Files with missing lines 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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

viirya commented May 25, 2024

Merged. Thanks @andygrove @sunchao

@andygrove
Copy link
Copy Markdown
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
Copy Markdown
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