Repository navigation
Share a table from a start version - #200
Closed
littlegrasscao wants to merge 1 commit into
Closed
littlegrasscao wants to merge 1 commit into
littlegrasscao wants to merge 1 commit into
Conversation
A share can record the first version of a table that recipients may read, set with startVersion on the data object that adds the table, and kept in a new column of the shared objects. Reading an earlier version is refused with 403 PERMISSION_DENIED "You can only query table data since version N." whether the version is asked for directly, resolved from a timestamp, or the start of a change range. A table without a start version has no limit. Co-authored-by: Isaac <no-reply@databricks.com> Signed-off-by: Sun Cao <sun.cao+data@databricks.com>
littlegrasscao
requested review from
chakankardb,
hueyhuilonghan and
linzhou-db
as code owners
November 13, 2026 17:39
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 12 selected item(s). |
Collaborator
Author
|
Not needed: tables are always shared with full history. |
An error occurred while trying to automatically change base from
fix/unsupported-table-properties
to
main
November 16, 2026 17:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #197.
A share can record the first version of a table that recipients may read. A table without one has no limit, as before.
PERMISSION_DENIED"You can only query table data since version<n>."Change
UpdateShareRequest.DataObjecttakes an optionalstartVersionwhen a table is added to a share. It is stored in a newstart_versioncolumn ofos_shared_data_objects(Flyway migrationV2for H2, MySQL and PostgreSQL) and reported on the share's objects.ProtocolTablespasses the table's start version to the readers, andDeltaSnapshotsrefuses any snapshot opened below it: metadata, snapshot queries,startingVersionqueries and the Change Data Feed.Test plan
mvn -pl opensharing-server-core,opensharing-server clean test(Java 17) passes, including the migration test and tests that read before and after a start version through the protocol and the readers.This pull request and its description were written by Isaac.