1
0

[HUDI-4200] Fixing sorting of keys fetched from metadata table (#5773)

- Key fetched from metadata table especially from base file reader is not sorted. and hence may result in throwing NPE (key prefix search) or unnecessary seeks to starting of Hfile (full key look ups). Fixing the same in this patch. This is not an issue with log blocks, since sorting is taking care within HoodieHfileDataBlock.
- Commit where the sorting was mistakenly reverted [HUDI-3760] Adding capability to fetch Metadata Records by prefix  #5208
This commit is contained in:
Sivabalan Narayanan
2022-06-07 08:19:52 -04:00
committed by GitHub
parent 4f5cad8029
commit f85cd9b16d
4 changed files with 27 additions and 16 deletions

View File

@@ -250,7 +250,7 @@ class TestColumnStatsIndex extends HoodieClientTestBase with ColumnStatsIndexSup
{
// We have to include "c1", since we sort the expected outputs by this column
val requestedColumns = Seq("c1", "c4")
val requestedColumns = Seq("c4", "c1")
val partialColStatsDF = readColumnStatsIndex(spark, basePath, metadataConfig, requestedColumns)
val partialTransposedColStatsDF = transposeColumnStatsIndex(spark, partialColStatsDF, requestedColumns, sourceTableSchema)