[
https://issues.apache.org/jira/browse/HIVE-24224?focusedWorklogId=493912&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-493912
]
ASF GitHub Bot logged work on HIVE-24224:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 02/Oct/20 11:31
Start Date: 02/Oct/20 11:31
Worklog Time Spent: 10m
Work Description: pgaref opened a new pull request #1546:
URL: https://github.com/apache/hive/pull/1546
Change-Id: I918a2eff0197e7d92db1f1858f3402b874d3b10a
### What changes were proposed in this pull request?
Fix header/footer skipping for compressed files -- bug discovered for Hive
on Tez
### Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
-->
### Does this PR introduce _any_ user-facing change?
<!--
Note that it means *any* user-facing change including all aspects such as
the documentation fix.
If yes, please clarify the previous behavior and the change this PR proposes
- provide the console output, description, screenshot and/or a reproducable
example to show the behavior difference if possible.
If possible, please also clarify if this is a user-facing change compared to
the released Hive versions or within the unreleased branches such as master.
If no, write 'No'.
-->
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some
test cases that check the changes thoroughly including negative and positive
cases if possible.
If it was tested in a way different from regular unit tests, please clarify
how you tested step by step, ideally copy and paste-able, so that other
reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why
it was difficult to add.
-->
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 493912)
Remaining Estimate: 0h
Time Spent: 10m
> Fix skipping header/footer for Hive on Tez on compressed files
> --------------------------------------------------------------
>
> Key: HIVE-24224
> URL: https://issues.apache.org/jira/browse/HIVE-24224
> Project: Hive
> Issue Type: Bug
> Reporter: Panagiotis Garefalakis
> Assignee: Panagiotis Garefalakis
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Compressed file with Hive on Tez returns header and footers - for both
> select * and select count ( * ):
> {noformat}
> printf "offset,id,other\n9,\"20200315 X00 1356\",123\n17,\"20200315 X00
> 1357\",123\nrst,rst,rst" > data.csv
> hdfs dfs -put -f data.csv /apps/hive/warehouse/bz2test/bz2tbl1/
> bzip2 -f data.csv
> hdfs dfs -put -f data.csv.bz2 /apps/hive/warehouse/bz2test/bz2tbl2/
> beeline -e "CREATE EXTERNAL TABLE default.bz2tst2 (
> sequence int,
> id string,
> other string)
> ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
> LOCATION '/apps/hive/warehouse/bz2test/bz2tbl2'
> TBLPROPERTIES (
> 'skip.header.line.count'='1',
> 'skip.footer.line.count'='1');"
> beeline -e "
> SET hive.fetch.task.conversion = none;
> SELECT * FROM default.bz2tst2;"
> +-------------------+--------------------+----------------+
> | bz2tst2.sequence | bz2tst2.id | bz2tst2.other |
> +-------------------+--------------------+----------------+
> | offset | id | other |
> | 9 | 20200315 X00 1356 | 123 |
> | 17 | 20200315 X00 1357 | 123 |
> | rst | rst | rst |
> +-------------------+--------------------+----------------+
> {noformat}
> PS: HIVE-22769 addressed the issue for Hive on LLAP.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)