Skip to content

HIVE-29617: Error while loading column statistics of Iceberg table after upgrading Hive#6496

Open
kasakrisz wants to merge 1 commit into
apache:masterfrom
kasakrisz:HIVE-29617-master-estimate-stats
Open

HIVE-29617: Error while loading column statistics of Iceberg table after upgrading Hive#6496
kasakrisz wants to merge 1 commit into
apache:masterfrom
kasakrisz:HIVE-29617-master-estimate-stats

Conversation

@kasakrisz
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Modify StatsUtils.estimateStatsForMissingCols to return a new list of column statistics instead of adding the newly estimated stats to its input parameter.

Why are the changes needed?

When reading the column statistics of an Iceberg table fails, Collections.emptyList() is returned. Because this is an unmodifiable list, the current implementation of estimateStatsForMissingCols tries to add the estimated column statistics to it and an exception is thrown.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

mvn test -Dtest=TestStatsUtils#testEstimateStatsForMissingColsHandlesEmptyList -pl ql

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants