You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "shuyouZZ (via GitHub)" <gi...@apache.org> on 2026/10/22 03:32:26 UTC
[I] [spark] Expose Fluss table properties in Spark SQL [fluss]
shuyouZZ opened a new issue, #4797:
URL: https://github.com/apache/fluss/issues/4797
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
### Motivation
Fluss tables have properties such as `table.log.ttl`, primary keys, and bucket configuration. However, the Spark connector currently does not expose these properties through Spark's `Table.properties()` interface.
As a result:
- `SHOW TBLPROPERTIES` returns no properties.
- `DESCRIBE TABLE EXTENDED` / `DESC FORMATTED` shows an empty property list.
- `SHOW CREATE TABLE` omits table properties and connector-specific structural options.
This makes it difficult to inspect existing tables or verify configuration changes. For example, after changing `table.log.ttl` with `ALTER TABLE ... SET TBLPROPERTIES`, users cannot confirm the updated value through Spark SQL.
Spark should expose the persisted Fluss table metadata consistently, including for tables originally created through Flink or the Fluss Admin API.
### Solution
Implement `Table.properties()` in the shared Spark table implementation.
The returned map should:
- Include persisted Fluss table properties and custom properties.
- Expose `primary.key`, `bucket.num`, `bucket.key`, and comments from the actual table metadata.
- Give authoritative structural metadata precedence over conflicting custom properties, including case-insensitive name collisions.
- Omit structural options that are absent from the table definition.
- Return a detached map so callers cannot modify the underlying metadata.
Add regression tests covering:
- Property inspection through `SHOW TBLPROPERTIES`, `SHOW CREATE TABLE`, and `DESC FORMATTED`.
- Property updates and removals through Spark SQL.
- Tables created through the Fluss Admin API.
- Conflicting custom properties and mutation safety.
The implementation should use the shared connector layer and remain compatible with supported Spark versions.
### Anything else?
_No response_
### Willingness to contribute
- [ ] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org