-
Notifications
You must be signed in to change notification settings - Fork 304
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
HPCC-31642 ParquetReader::readColumns not reading nested columns properly #18555
Conversation
Jira Issue: https://hpccsystems.atlassian.net//browse/HPCC-31642 Jirabot Action Result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sensible. One efficiency issue.
plugins/parquet/parquetembed.cpp
Outdated
@@ -274,14 +310,16 @@ void divide_row_groups(const IThorActivityContext *activityCtx, __int64 totalRow | |||
__int64 ParquetReader::readColumns(__int64 currTable) | |||
{ | |||
auto rowGroupReader = queryCurrentTable(currTable); // Sets currentTableMetadata | |||
for (int i = 0; i < expectedRecord->getNumFields(); i++) | |||
for (int i = 0; i < getNumFields(expectedRecord); i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
efficiency: Assign getNumFields to a temporary first (otherwise it will be recalculated each time around the loop), or explicitly walk through the fields instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assigned result to a temporary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jackdelv looks good. Please squash.
@ghalliday Squashed. |
@jackdelv should this target 9.6.x? |
@ghalliday Yes, I think it should since this is a bug fix. |
Type of change:
Checklist:
Smoketest:
Testing: