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
HIVE-24827. Hive aggregation query returns incorrect results for non text files. #2018
Conversation
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.
will this also work for in cases when the input data is compressed?
I think the existing one did worked for that as well...tests passed so it was either not covered or still working fine :)
if (footerCount > 0 && table.getInputFileFormatClass() != null | ||
&& !TextInputFormat.class | ||
.isAssignableFrom(table.getInputFileFormatClass())) { | ||
LOG.warn("skip.footer.line.count is only valid for TextInputFormat " | ||
+ "files, ignoring the value."); | ||
footerCount = 0; | ||
} |
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.
seems to be a duplicate block ; you could move it into a method
Thanx @kgyrtkirk for the review. I tried the scenario in HIVE-24224. I think it worked as expected:
The file in was :
Table is
Seems working, the UT was working. :-) |
…text files. (apache#2018) (Ayush Saxena reviewed by Zoltan Haindrich)
No description provided.