This is an automated email from the ASF dual-hosted git repository.
jerryshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new 7a08c35475 [#14875] docs(lakehouse-generic): Document Delta table
location inheritance (#14876)
7a08c35475 is described below
commit 7a08c35475399d7ee864eb9c5e5f2c49d66d371c
Author: Jerry Shao <[email protected]>
AuthorDate: Thu Nov 12 16:01:56 2026 +0800
[#14875] docs(lakehouse-generic): Document Delta table location inheritance
(#14876)
### What changes were proposed in this pull request?
Update `docs/lakehouse-generic-delta-table.md` to match how the Generic
Lakehouse Catalog resolves the location of a Delta table:
- Mark the table `location` property as not required. If it is omitted,
the location is inherited from the schema or catalog through the
location resolution hierarchy.
- Recommend setting `location` explicitly, because an inherited path
usually has no existing `_delta_log` and Gravitino does not check for
one.
- Note that the stored location may end with a trailing `/`.
- Replace the troubleshooting entry for `Property 'location' is required
for external Delta tables`, which the catalog never returns, with the
error users actually see. Add an entry for a registered location that
has no Delta data.
### Why are the changes needed?
`GenericCatalogOperations.createTable` asks the table location provider
for a location before it calls `DeltaTableOperations`, so the
Delta-specific location check never fails. The doc said `location` must
be set at table level, which is wrong whenever the schema or catalog has
a location.
Fixes #14875
### Does this PR introduce _any_ user-facing change?
No. Documentation only.
### How was this patch tested?
Docs-only change. Checked the new text against
`GenericCatalogOperations` and `DefaultTableLocationProvider`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
docs/lakehouse-generic-delta-table.md | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/docs/lakehouse-generic-delta-table.md
b/docs/lakehouse-generic-delta-table.md
index b3000209bc..e7dc058e3c 100644
--- a/docs/lakehouse-generic-delta-table.md
+++ b/docs/lakehouse-generic-delta-table.md
@@ -81,10 +81,18 @@ Required and optional properties for Delta tables in a
Generic Lakehouse Catalog
| Property | Description
| Default | Required |
|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|----------|
| `format` | Table format: must be `delta`
| (none) | Yes |
-| `location` | Storage path for the Delta table. Must point to a directory
containing Delta Lake metadata (_delta_log). Supports file://, s3://, hdfs://,
abfs://, gs://, and other Hadoop-compatible file systems. | (none) | Yes |
+| `location` | Storage path for the Delta table. Must point to a directory
containing Delta Lake metadata (_delta_log). Supports file://, s3://, hdfs://,
abfs://, gs://, and other Hadoop-compatible file systems. | (none) | No |
| `external` | Must be `true` for Delta tables. Indicates that Gravitino
manages metadata only <br/>and will not delete physical data when the table is
dropped. | (none) | Yes
|
-**Location Requirement:** Must be specified at table level for external Delta
table. See [Location
Resolution](./lakehouse-generic-catalog.md#key-property-location).
+**Location Requirement:** If the table `location` is omitted, Gravitino
resolves it from the schema
+or catalog `location`, following the [Location Resolution
Hierarchy](./lakehouse-generic-catalog.md#key-property-location).
+Table creation fails only if no level provides a location. An inherited path
such as
+`{catalog_location}/{schema_name}/{table_name}/` usually does not contain an
existing `_delta_log`,
+and Gravitino does not check that it does. Set `location` explicitly to the
directory of the
+existing Delta table.
+
+The stored `location` may end with a trailing `/`. For example,
`s3://my-bucket/delta-tables/customer_orders`
+is stored as `s3://my-bucket/delta-tables/customer_orders/`.
### Table Operations
@@ -347,11 +355,18 @@ Partition information in Gravitino is **metadata only**:
Solution: Ensure you set "external": "true" in the table properties
```
-**Issue: "Property 'location' is required for external Delta tables"**
+**Issue: "'location' property is neither set in table properties nor in schema
properties, and no location is set in catalog properties either"**
```
Solution: Specify the location property pointing to your Delta table directory
```
+**Issue: The registered table location does not contain Delta data**
+```
+Solution: The location was inherited from the schema or catalog because the
table
+location was omitted. Drop the table and register it again with the location
+property pointing to your Delta table directory
+```
+
**Issue: "ALTER TABLE operations are not supported"**
```
Solution: Use Delta Lake APIs (Spark, Delta-rs, etc.) to modify the table,