deniskuzZ opened a new pull request, #6976:
URL: https://github.com/apache/hive/pull/6976
### What changes were proposed in this pull request?
With `hive.llap.io.parquet.native.enabled` on, `HiveVectorizedReader` reads
the splits of Iceberg Parquet files
through LLAP's native Parquet pipeline (HIVE-30059): LLAP caches the column
chunks and decodes them from the cache,
as it does for Hive Parquet tables, and as Iceberg ORC reads already do
through `LlapOrcIo.vectorizedReaderForPath`.
- `LlapParquetIo.vectorizedReaderForPath`, the Parquet counterpart of the
ORC method, returns an LLAP record reader
for a split, or null when the daemon has no native Parquet producer or the
pipeline declines the split.
- `ParquetEncodedDataConsumer` sets the start row in the file of each batch
again: `HiveBatchIterator` applies
Iceberg position deletes and the row position by it.
- Encrypted files and tables with a variant column keep the vectorized
Parquet reader; a split whose projection reaches
into a nested type or projects the row-lineage columns falls back to it,
as for Hive tables.
### Why are the changes needed?
Since HIVE-30059, Hive Parquet tables can use the native LLAP cache, but
Iceberg Parquet reads in LLAP always go through
the vectorized Parquet reader and its cache-only path, so the same setting
means different things for the two table
types.
### Does this PR introduce _any_ user-facing change?
`hive.llap.io.parquet.native.enabled` (default false) now applies to Iceberg
tables too; its description says so.
### How was this patch tested?
- `llap_iceberg_native_parquet_cache.q` (TestIcebergLlapLocalCliDriver): a
partitioned V2 Iceberg Parquet table read
through the native pipeline, with the virtual columns (ROW__POSITION
included) and a DELETE whose position deletes
apply to the native batches; the LLAP IO summary shows the native pipeline
(decoded batches, selected row groups,
cache hits). With the dispatch disabled, the native counters disappear and
the test fails.
- `TestParquetEncodedDataReader`: the start rows of the batches skip a
pruned row group; without the consumer change
the test fails.
--
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]