Skip to content

fix: invalidate table scan schema cache#758

Merged
wgtmac merged 2 commits into
apache:mainfrom
fallintoplace:fix/invalidate-scan-schema-cache
Jun 28, 2026
Merged

fix: invalidate table scan schema cache#758
wgtmac merged 2 commits into
apache:mainfrom
fallintoplace:fix/invalidate-scan-schema-cache

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Summary

  • invalidate the cached scan snapshot schema whenever snapshot/ref/time-travel state changes
  • preserve requested column-stat names and re-resolve them during Build so stats IDs match the final snapshot schema
  • add regression coverage for IncludeColumnStats before UseSnapshot and non-main UseRef with an evolved schema

Tests

  • cmake --build build --target scan_test
  • ctest --test-dir build -R scan_test --output-on-failure

@fallintoplace fallintoplace changed the title Fix table scan schema cache invalidation fix: invalidate table scan schema cache Jun 18, 2026
Comment thread src/iceberg/table_scan.cc Outdated
@wgtmac wgtmac merged commit e516a75 into apache:main Jun 28, 2026
21 checks passed
@wgtmac

wgtmac commented Jun 28, 2026

Copy link
Copy Markdown
Member

Thank you, @fallintoplace!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants