You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Spark] Expand UC Delta ALTER TABLE integration tests (#6902)
#### Which Delta project/connector is this regarding?
- [x] Spark
- [ ] Standalone
- [ ] Flink
- [ ] Kernel
- [ ] Other (fill in here)
## Description
Follow-up to the UC Delta `ALTER TABLE` testing breadth requested in
#6840.
This PR expands `sparkuctest` coverage for UC Delta `ALTER TABLE`
behavior by replacing the broad smoke coverage with focused integration
tests. The suite now covers both supported ALTER operations and blocked
operations, including checks that rejected ALTERs do not create a new
Delta version or partially mutate UC Delta metadata.
Added coverage includes:
- column changes: ADD COLUMNS with primitive and complex types, MODIFY
type, DROP, RENAME, quoted column rename, nested column changes,
comments, and column position changes
- table comments through `COMMENT ON TABLE`
- table properties: custom property SET/UNSET, recognized
`delta.autoOptimize.*` properties, protocol-derived no-op commits,
unknown `delta.*` properties blocked as no-op failures, and
external-table supported ALTER smoke coverage
- table features: feature-backed properties such as CDF, direct
feature-property enablement blocked, required feature drops blocked, and
CCv2/catalog-managed upgrade and downgrade blocked
- partition behavior: partition management commands blocked and dropping
partition columns blocked without metadata/data mutation
- constraints: ADD/DROP constraint behavior, constraint enforcement, and
failed ADD CONSTRAINT leaving no constraint metadata behind
- metadata ALTERs: SET LOCATION, SET SERDE, SET OWNER TO, and RENAME
TABLE blocked without changing the existing table
- tags: SET/UNSET TAGS blocked
- cluster keys: CLUSTER BY, changing cluster keys, and CLUSTER BY NONE
with UC Delta metadata validation
## How was this patch tested?
```bash
./build/sbt sparkUnityCatalog/javafmtAll
./build/sbt "sparkUnityCatalog/testOnly io.sparkuctest.UCDeltaTableAlterTest"
git diff --check -- spark/unitycatalog/src/test/java/io/sparkuctest/UCDeltaTableAlterTest.java
```
The focused ALTER TABLE suite passed with 29 tests.
## Does this PR introduce _any_ user-facing changes?
No. Test-only change.
0 commit comments