ayushtkn opened a new pull request, #3758:
URL: https://github.com/apache/hive/pull/3758
### What changes were proposed in this pull request?
Allow writing actual row data in delete file as optional
### Why are the changes needed?
To avoid cost of reading/writing actual row data while reading/write delete
files
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Added UT to ensure functionality. Tested File Contents and operations in
actual env.
**Output: (With Config Enabled)**
```
[root@ayushsaxena-2 ~]# sudo -u hive hive --orcfiledump -d
hdfs://cluster:8020/warehouse/tablespace/external/hive/ice02/data/00000-0-delete-hive_20221112171847_aba7a24a-68ec-46fa-bed4-3588f4a92e74-job_16680670596081_0052-1-00001.orc
Processing data file
hdfs://cluster:8020/warehouse/tablespace/external/hive/ice02/data/00000-0-delete-hive_20221112171847_aba7a24a-68ec-46fa-bed4-3588f4a92e74-job_16680670596081_0052-1-00001.orc
[length: 1075]
{"file_path":"hdfs:\/\/cluster:8020\/warehouse\/tablespace\/external\/hive\/ice02\/data\/00000-0-data-hive_20221112171758_ff81cb9a-d455-455d-8080-9b1507f33bd8-job_16680670596080_0052-2-00001.orc","pos":3}
```
**Output:(With config Disabled)**
```
[root@ayushsaxena-2 ~]# sudo -u hive hive --orcfiledump -d
hdfs://cluster:8020/warehouse/tablespace/external/hive/ice01/data/00000-0-delete-hive_20221112171823_8817d25c-3178-4f4b-9908-be794029cbce-job_16680670596081_0052-1-00001.orc
Processing data file
hdfs://cluster:8020/warehouse/tablespace/external/hive/ice01/data/00000-0-delete-hive_20221112171823_8817d25c-3178-4f4b-9908-be794029cbce-job_16680670596081_0052-1-00001.orc
[length: 1178]
{"file_path":"hdfs:\/\/cluster:8020\/warehouse\/tablespace\/external\/hive\/ice01\/data\/00000-0-data-hive_20221112171727_18104d4c-f5a2-4c47-8f6e-b8e4f17a18b3-job_16680670596080_0052-1-00001.orc","pos":3,"row":{"id":4}}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]