Skip to content

POC: Delta rest api#3

Open
yili-db wants to merge 1 commit into
mainfrom
poc_drc_pr
Open

POC: Delta rest api#3
yili-db wants to merge 1 commit into
mainfrom
poc_drc_pr

Conversation

@yili-db

@yili-db yili-db commented Mar 3, 2026

Copy link
Copy Markdown
Owner

PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

POC: Delta rest api

Signed-off-by: Yi Li <yi.li@databricks.com>
yili-db pushed a commit that referenced this pull request Jul 17, 2026
…ests (unitycatalog#1646)

**Stack 3/4** — split of unitycatalog#1554. Stacked on unitycatalog#1645.

> Based on unitycatalog#1645 (which is based on unitycatalog#1644). GitHub shows the cumulative
diff; **review only this PR's own commit** `3b76bc27`, and merge after
unitycatalog#1645.

### What this PR does
Wires metric-view support into the connector on Spark 4.2 and applies
the review-driven refactors.

- **Real 4.2 `ViewSupport` / `UCProxyViewSupport`**: `listViews` /
`loadView` / `createView` / `dropView` / `renameView` (+
`loadTableOrView`), wrapping view-like UC rows as `MetadataTable +
ViewInfo`; 4.0/4.1 stay no-ops.
- **`UCSingleCatalog`** mixes in `TableViewCatalog` + `ViewSupport`,
keeps a `ucProxy` handle, and calls the per-version
`rejectIfShimmedView` hook from `loadTable`.
- **`UCProxy`** view dispatch: `listUcTables` / `getUcTable` /
`loadV1Table` extractions, view filtering in `listTables` / `dropTable`,
409 → already-exists mapping.
- **`UCViewTypes`** (new): the view-type mapping (`viewLikeUcTypes` +
predicates) moved **out of `UCSingleCatalog`** so the catalog stays
focused on table management (@zhenghu's Slack ask).
- **`UCColumnConversions`**: the view path's `Column` serializer folded
in alongside the `StructField` one (from unitycatalog#1644), and the separate
`UCColumnJson` deleted (@openinx's unify ask).
- Comment/scaladoc cleanups (#3/unitycatalog#4/unitycatalog#10/unitycatalog#11) and the redundant-`proxy`
fix (unitycatalog#9).

### Tests
`UCViewProxySuite` (Spark 4.2 view CRUD), `UCProxySuite` view-filtering
additions + shared `UCProxyTestFixture`, `UCColumnConversionsSuite`, and
new `UCViewUnsupportedSuite` on **4.0/4.1** asserting metric views are
unsupported there (explicit per-version coverage per @zhenghu).

### Stack
1. unitycatalog#1644 — extract `UCColumnConversions`
2. unitycatalog#1645 — shim scaffolding
3. **this PR** — view glue + `UCViewTypes` + unit tests
4. local-run e2e tests

Verified: compiles on Spark 4.0/4.1/4.2; unit suites green on 4.0/4.1;
the Spark-4.2 view suites compile against real 4.2 and run green in CI
(they require a real Spark 4.2 runtime).

This pull request and its description were written by Isaac.

This PR is assisted by Isaac Autopilot: [View the full session spec,
test plan, and
artifacts](http://go/isaac-autopilot/cli-viewer/1782162701477/chen-wang_data).

Signed-off-by: chen.wang <chen.wang@databricks.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.

1 participant