Hi Mengna,
Thanks for the proposal! Nice idea, and +1, having Polaris in the
commit path for Lance tables makes sense (and off by default is the
right start).
I went through the design doc and I have some comments.
I share Yufei's concern on the API scope. The paths are generic
(generic-tables/{t}/versions), but the payload is Lance
(manifest-path, naming-schema V1/V2). Once it's in the spec, it's hard
to change. I would either make the Lance scope explicit in the API, or
agree now on what is common to all formats. On the impl side, I would
prefer the Lance logic (manifest reader, protobuf) behind a SPI, in
its own module, rather than in PolarisGenericTableCatalog.
About the authorization, the goal says Polaris authorizes read, write,
index operations and time travel. Without credential vending for
generic tables, clients still have their own storage credentials, so
Polaris only controls the version endpoints. I'm fine with an
incremental approach, but we should either make vending a prerequisite
of that goal, or reduce the goal to coordination and audit for
cooperating clients.
Now, about the commit point: for Polaris, the commit succeeds when the
record is inserted. In Lance's ExternalManifestStore, the durable
commit point is the final manifest in storage. We need to define what
happens when they diverge:
- If a writer bypasses Polaris and creates the final manifest for N,
step 3 returns 409 for N, and step 5 only accepts N. So the table
can't commit anymore.
- If the staging manifst of a pending version is gone before the copy,
that version can't be completed, and it blocks the next commits.
I think we need a repair path for both. Also, the copy in step 6
should be conditional (never overwrite), as in Lance's directory
namespace (copy_if_not_exists). The check in step 3 is not enough, as
a file can appear in between.
Two requests with the same staging path (client timeout, then retry)
can both pass step 2. The second one gets 409 in step 5, and "after a
409, the client delegates its own staging manifest" would then remove
the manifest of a committed version, maybe before the copy. I think
step 5 should compare staging_path again and treat a match as a retry.
A pending version is only completed by a retry or the next commit.
Until then, list/describe return the staging path, so a read-only
client may fail on the latest version. How do we want to handle that?
Lance sends an optional branch in the version requests, and branch
manifests are under tree/{branch}/_versions. It's fine to have it out
of scope, but we should say so, return a clear error, and think about
the key now to avoid a schema migration later.
I have a few other minor points:
- I believe Lance core sends manifest_path as an object store path,
not a URI as in the example, and parses the response the same way. I
guess the adapter converts both directions?
- As far as I can see, Lance cleanup doesn't remove the records of a
namespace backed store. With BatchDeleteTableVersions out of scope, we
would list versions whose manifest is gone.
- base-location is optional and ALLOW_TABLE_LOCATION_OVERLAP can be
enabled. I would reject managed-versioning at creation time in both
cases.
- The config endpoint should advertise the new endpoints only when the
feature is enabled.
- The list endpoint should use page-size, as the other generic table
endpoints, rather than limit.
For me, the first four points should be clarified before the spec PR
(I will bring these points to the doc too).
Also (lesson learned from Directory proposal :)) I would split the
work: spec first, then persistence, then the commit path.
Happy to review the PRs :)
Regards
JB
On Mon, Nov 30, 2026 at 1:17 AM Mengna Lin via dev
<[email protected]> wrote:
>
> Hi all,
> Polaris does not see the commits to a Lance table today. A Generic Table is
> only a pointer to a location, and the Lance client commits directly in
> storage. Polaris cannot authorize, record, or audit these commits.
> I would like to propose commit coordination for Generic Tables, with Lance as
> the first user. Polaris would add three endpoints (commit a version, list
> versions, describe a version). They follow the Lance Namespace specification.
> Each commit leaves a record with its operation type. The feature is off by
> default and starts with JDBC persistence.
> Issue: https://github.com/apache/polaris/issues/6033
> Design document:
> https://docs.google.com/document/d/1y7D84zbcDOCiKxWnsvybF0AjuLI_heSlP829zw1ccVc/edit?usp=sharing
> Feedback is welcome here or as comments in the document.
> Thanks,
> Mengna