Skip to content

fix(caching): use portable versions for unhashable results - #1836

Open
JustinBinber wants to merge 1 commit into
apache:mainfrom
JustinBinber:codex/fix-portable-unhashable-cache-versions
Open

JustinBinber wants to merge 1 commit into
apache:mainfrom
JustinBinber:codex/fix-portable-unhashable-cache-versions

Conversation

@JustinBinber

Copy link
Copy Markdown
Contributor

Fixes #1835.

Cached nodes returning unsupported fingerprint values can fail on Windows because their random result versions contain < and >, which become part of the result filename. This also breaks caching pandas objects with unhashable cells.

Use unhashable_<uuid> for newly generated fallback result versions. Keep the raw fingerprint sentinel, warning/event behavior, UUID uniqueness and existing cached-version lookup unchanged. The dependency-only fallback is encoded inside the cache key and does not become a result filename.

Tests cover portable/unique versions and store round trips for opaque and nested unsupported values, plus real Driver persistence, a cache hit from another Driver, forced recomputation and a subsequent cache hit. The existing pandas list-cell integration case now passes on Windows.

Validation on Windows / Python 3.11:

  • Focused regression selection: 5 failed before the change, 5 passed afterward (four new cases and the existing pandas integration case).
  • Explicit offline caching, fingerprinting, store, integration and legacy cache-adapter suites: 161 passed, 3 optional Polars skips.
  • Project pre-commit hooks, Ruff 0.16.9 and git diff --check pass.
  • A fresh-Driver compatibility probe with SQLite metadata and an in-memory result store reused an existing <unhashable>_<uuid> version without recomputation. A live POSIX filesystem run was not performed.

This also resolves the pre-existing Windows filename failure noted during validation of #1833 and #1834.

This branch has not been deployed

No deployments
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.

Caching unhashable node results fails on Windows with invalid filenames

1 participant