Skip to content

feat(core): support local-cache extension exclusions - #1267

Open
QuakeWang wants to merge 2 commits into
apache:mainfrom
QuakeWang:verify-cache-exclusions
Open

QuakeWang wants to merge 2 commits into
apache:mainfrom
QuakeWang:verify-cache-exclusions

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

Closes #971.

Local caching supports broad data selection or fixed structured-data exclusions, but cannot exclude configurable file extensions.

Brief change log

  • Add local-cache.exclude-extensions to exclude BLOB or other extensions.
  • Preserve existing behavior by default and retain write/delete invalidation.

Tests

  • 7 regression tests covering memory, disk, and shared-disk caches.
  • 189 cache tests and 77 FileIO tests passed serially.
  • Formatting, workspace Clippy, and dependency/license checks passed.

API and Format

Adds one catalog option. Storage and cache formats are unchanged.

Documentation

Updated the local-cache configuration guide.

Add optional extension exclusions to the local block cache so data files
can remain cacheable without caching BLOB bodies.

Preserve write and delete invalidation for excluded files, and cover
memory, disk and shared-disk reads with regression tests.

Closes apache#971

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
Use slash-separated paths for FileIO cache classification while retaining native paths for direct filesystem operations. Keep all exclusion and invalidation assertions enabled on Windows.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
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.

Support local-cache extension exclusions

1 participant