Skip to content

[Protocol Change] Protocol RFC for Table Redirect #4507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

weiluo-db
Copy link
Contributor

@weiluo-db weiluo-db commented May 7, 2025

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (Protocol RFC)

Description

Add the protocol change proposal for the redirect table features (see #3702) to the RFC folder. This PR replaces #3705.

How was this patch tested?

n/a

Does this PR introduce any user-facing changes?

No.


* **RedirectWriterOnly**:
When enabled, redirectable clients must redirect both reads and writes. For non-redirectable clients,
**reads from the source table are still allowed**, but **writes are blocked**.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can clients "optionally" decide to redirect to target tables for reads?


* **State**: Indicates the status of the redirect. While the exact values are implementation-specific, the following
high-level states are recommended:
* `IN-PROGRESS`: The redirect is being set up. No redirect is performed. The source table is still readable but not writable.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not writable -> except for updating this state to "READY"?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I think below engine responsibilities address this?

**reads from the source table are still allowed**, but **writes are blocked**.

Redirect is enabled and configured at the source table via the corresponding Delta table properties:
`redirectReaderWriter` and `redirectWriterOnly`. These are JSON strings specific to the implementation, but they should
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any example JSON?

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.

2 participants