[ 
https://issues.apache.org/jira/browse/HIVE-24827?focusedWorklogId=558520&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-558520
 ]

ASF GitHub Bot logged work on HIVE-24827:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Feb/21 11:24
            Start Date: 26/Feb/21 11:24
    Worklog Time Spent: 10m 
      Work Description: ayushtkn commented on pull request #2018:
URL: https://github.com/apache/hive/pull/2018#issuecomment-786588569


   Thanx @kgyrtkirk for the review. I tried the scenario in HIVE-24224. I think 
it worked as expected:
   ```
   +-------------------+--------------------+----------------+
   | bz2tst2.sequence  |     bz2tst2.id     | bz2tst2.other  |
   +-------------------+--------------------+----------------+
   | 9                 | 20200315 X00 1356  | 123            |
   | 17                | 20200315 X00 1357  | 123            |
   +-------------------+--------------------+----------------+
   ```
   
   The file in was :
   ```
    printf "offset,id,other\n9,\"20200315 X00 1356\",123\n17,\"20200315 X00 
1357\",123\nrst,rst,rst" > data.csv
   
   bzip2 -f data.csv 
   
   hdfs dfs -put data.csv.bz2 
hdfs://hostname:8020/warehouse/tablespace/external/hive/bz2tst2
   ```
   
   Table is 
   ```
   +----------------------------------------------------+
   |                   createtab_stmt                   |
   +----------------------------------------------------+
   | CREATE EXTERNAL TABLE `bz2tst2`(                   |
   |   `sequence` int,                                  |
   |   `id` string,                                     |
   |   `other` string)                                  |
   | ROW FORMAT SERDE                                   |
   |   'org.apache.hadoop.hive.serde2.OpenCSVSerde'     |
   | STORED AS INPUTFORMAT                              |
   |   'org.apache.hadoop.mapred.TextInputFormat'       |
   | OUTPUTFORMAT                                       |
   |   'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' |
   | LOCATION                                           |
   |   
'hdfs://ayushsaxena-3.ayushsaxena.root.hwx.site:8020/warehouse/tablespace/external/hive/bz2tst2'
 |
   | TBLPROPERTIES (                                    |
   |   'bucketing_version'='2',                         |
   |   'skip.footer.line.count'='1',                    |
   |   'skip.header.line.count'='1',                    |
   |   'transient_lastDdlTime'='1614334965')            |
   +----------------------------------------------------+
   ```
   
   Seems working, the UT was working. :-)


----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 558520)
    Time Spent: 0.5h  (was: 20m)

> Hive aggregation query returns incorrect results for non text files
> -------------------------------------------------------------------
>
>                 Key: HIVE-24827
>                 URL: https://issues.apache.org/jira/browse/HIVE-24827
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> When header & footer are configured for non-text files, the aggregation query 
> returns wrong result.
> Propose to ignore this property for non-text files



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to