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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]