Skip to content

Fix UC setup cache key collisions and local Spark-version switching#6866

Open
yili-db wants to merge 6 commits into
delta-io:masterfrom
yili-db:stack/bump_uc_sha
Open

Fix UC setup cache key collisions and local Spark-version switching#6866
yili-db wants to merge 6 commits into
delta-io:masterfrom
yili-db:stack/bump_uc_sha

Conversation

@yili-db
Copy link
Copy Markdown
Collaborator

@yili-db yili-db commented May 24, 2026

🥞 Stacked PR

Use this link to review incremental changes.


Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (build.sbt)

Description

Fix UC setup cache key collisions and local Spark-version switching

Cache key usability:

  • Partition GHA cache key by SPARK_VERSION in setup-unitycatalog/action.yml so 4.0 and 4.1 stop fighting over one entry
  • Add setup-script hash to delta-sbt-cache-cross-spark key so script bumps invalidate the cross-Spark sbt cache

Local dev (switching Spark versions doesn't break):

  • Move ensurePinnedUnityCatalog canary from client/server (Spark-independent) to the spark artifact, so switching active Spark version re-triggers publish instead of short-circuiting
  • Set publishLocalConfiguration / publishM2Configuration with withOverwrite(true) per project so re-publishing for a different Spark version doesn't fail on existing client/server/hadoop artifacts

How was this patch tested?

CI

Does this PR introduce any user-facing changes?

No

@yili-db
Copy link
Copy Markdown
Collaborator Author

yili-db commented May 24, 2026

This is achieving the same goal as #6824. But this PR produces better functionality in terms of cache usability and Spark version switch in local dev workflow.

@yili-db yili-db force-pushed the stack/bump_uc_sha branch from a81610d to a36e7a1 Compare May 26, 2026 01:58
@yili-db yili-db mentioned this pull request May 26, 2026
5 tasks
@yili-db yili-db force-pushed the stack/bump_uc_sha branch 2 times, most recently from 5910829 to 9501147 Compare May 26, 2026 03:14
@yili-db yili-db force-pushed the stack/bump_uc_sha branch 2 times, most recently from e89fa4b to 11a3e61 Compare May 26, 2026 05:59
openinx pushed a commit that referenced this pull request May 26, 2026
## 🥞 Stacked PR
Use this [link](https://github.com/delta-io/delta/pull/6870/files) to
review incremental changes.
-
[**stack/spark42-preview**](#6870)
[[Files changed](https://github.com/delta-io/delta/pull/6870/files)]
- [stack/bump_uc_sha](#6866)
[[Files
changed](https://github.com/delta-io/delta/pull/6866/files/046318c601ad27e6edbb069fba558bff95b047e5..11a3e61ca79e90de45ee2252c2cefc06d6ec5ebb)]
-
[stack/DeltaCatalogClient_create](#6826)
[[Files
changed](https://github.com/delta-io/delta/pull/6826/files/11a3e61ca79e90de45ee2252c2cefc06d6ec5ebb..8a63fe4049beb49bf93f4d1b3a308b56ca5a273f)]
-
[stack/DeltaCatalogClient_replace](#6859)
[[Files
changed](https://github.com/delta-io/delta/pull/6859/files/8a63fe4049beb49bf93f4d1b3a308b56ca5a273f..0c5b785015d413cd9c026cd1091cf7f3d457f5f6)]

---------
#### Which Delta project/connector is this regarding?
- [x] Spark
- [ ] Standalone
- [ ] Flink
- [ ] Kernel
- [ ] Other (fill in here)

## Description
[Build] Pin Spark 4.2 lane to 4.2.0-preview5

- `CrossSparkVersions.scala`: `4.2.0-SNAPSHOT` -> `4.2.0-preview5`; drop
jitpack.
- `get_spark_version_info.py`: `--released-spark-versions` explicitly
excludes `-SNAPSHOT` / `-preview` markers.
- `test_cross_spark_publish.py`: bump pinned version; widen version
regex to accept `-previewN`; mirror the explicit pre-release marker
check.
- `spark_test.yaml`: comment "snapshot" -> "preview".
- `DeltaChangelogTestBase.java`: widen the existing SNAPSHOT-only skip
to also skip `-preview` (known `DeltaCatalog`/`AbstractDeltaCatalog`
classpath bug in sparkV2).
- `DeltaParquetFormatVersionSuite.scala`: widen the SPARK-56414
SNAPSHOT-only `assume` to also skip `-preview` (Delta's
`DeltaFileFormatWriter` does not yet merge per-write options).


## How was this patch tested?
CI

## Does this PR introduce _any_ user-facing changes?
No

Signed-off-by: Yi Li <yi.li@databricks.com>
@yili-db yili-db force-pushed the stack/bump_uc_sha branch from 11a3e61 to 8bf766a Compare May 26, 2026 22:49
@yili-db yili-db changed the title Bump UC sha to af090e7 and use the new UC-Spark package name Fix UC setup cache key collisions and local Spark-version switching May 26, 2026
@yili-db yili-db force-pushed the stack/bump_uc_sha branch 2 times, most recently from 1912aa8 to 3a4f0c7 Compare May 28, 2026 22:19
@yili-db yili-db closed this May 29, 2026
@yili-db yili-db reopened this May 29, 2026
@yili-db yili-db closed this May 29, 2026
@yili-db yili-db reopened this May 29, 2026
@yili-db yili-db force-pushed the stack/bump_uc_sha branch from 3a4f0c7 to a7e06b4 Compare June 5, 2026 07:53
@yili-db yili-db force-pushed the stack/bump_uc_sha branch 3 times, most recently from 3a93266 to 61d8d7a Compare June 5, 2026 23:16
yili-db added 4 commits June 5, 2026 22:21
Signed-off-by: Yi Li <yi.li@databricks.com>
Signed-off-by: Yi Li <yi.li@databricks.com>
Signed-off-by: Yi Li <yi.li@databricks.com>
Signed-off-by: Yi Li <yi.li@databricks.com>
@yili-db yili-db force-pushed the stack/bump_uc_sha branch from 61d8d7a to 32d1c1f Compare June 6, 2026 05:21
yili-db added 2 commits June 6, 2026 01:08
Signed-off-by: Yi Li <yi.li@databricks.com>
Signed-off-by: Yi Li <yi.li@databricks.com>
@yili-db yili-db force-pushed the stack/bump_uc_sha branch from 32d1c1f to d6ef81b Compare June 6, 2026 08:08
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.

1 participant