Skip to content

Add missing custom properties method and doc for table descriptor builder in C++. Add assertion for custom property in integration test.#336

Merged
luoyuxia merged 1 commit intoapache:mainfrom
leekeiabstraction:tableBuildDescriptor
Feb 17, 2026
Merged

Add missing custom properties method and doc for table descriptor builder in C++. Add assertion for custom property in integration test.#336
luoyuxia merged 1 commit intoapache:mainfrom
leekeiabstraction:tableBuildDescriptor

Conversation

@leekeiabstraction
Copy link
Contributor

Purpose

Linked issue: close #335

Brief change log

  • Add missing custom properties method in C++ TableDescriptionBuilder
  • Add custom properties assertions in integration test
  • Updated C++ documentation around custom properties
  • Also adds missing helper method for log/kv format in C++
  • Updated Rust documentation around custom properties

Tests

Integration tests ran and completed

@leekeiabstraction
Copy link
Contributor Author

@fresh-borzoni Appreciate your review here 🙏

@fresh-borzoni
Copy link
Contributor

@leekeiabstraction
it's already added in #330
I haven't added docs though, so let's wait until it gets merged, it's easier to resolve conflicts here, since it's smaller

@leekeiabstraction leekeiabstraction marked this pull request as draft February 15, 2026 14:12
@leekeiabstraction
Copy link
Contributor Author

Converted to draft, will push the doc part after #330 gets merged

@luoyuxia
Copy link
Contributor

@leekeiabstraction Hi, #330 is merged

@leekeiabstraction
Copy link
Contributor Author

Thank you for the reviews. I've updated doc follow #330 merge. PTAL!

@leekeiabstraction leekeiabstraction marked this pull request as ready for review February 17, 2026 12:39
@luoyuxia luoyuxia requested a review from Copilot February 17, 2026 12:52
Copy link
Contributor

@fresh-borzoni fresh-borzoni left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates API reference documentation for both Rust and C++ bindings to document the custom properties functionality in TableDescriptor/TableDescriptorBuilder and TableInfo. The custom properties feature allows users to attach arbitrary key-value metadata to tables beyond the standard table properties.

Changes:

  • Added custom_properties() method documentation for Rust TableDescriptor
  • Added custom_property() and custom_properties() method documentation for Rust TableDescriptorBuilder
  • Added SetCustomProperty() method documentation for C++ TableDescriptor::Builder
  • Added custom_properties field documentation for C++ TableInfo

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
website/docs/user-guide/rust/api-reference.md Added documentation for custom_properties getter and custom_property/custom_properties setter methods in TableDescriptor/TableDescriptorBuilder
website/docs/user-guide/cpp/api-reference.md Added documentation for SetCustomProperty method in TableDescriptor::Builder and custom_properties field in TableInfo

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| `SetBucketKeys(const std::vector<std::string>& keys) -> Builder&` | Set bucket key columns |
| `SetProperty(const std::string& key, const std::string& value) -> Builder&` | Set a table property |
| `SetCustomProperty(const std::string& key, const std::string& value) -> Builder&` | Set a custom property |
| `SetComment(const std::string& comment) -> Builder&` | Set a table comment |
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

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

The C++ TableDescriptor::Builder has SetLogFormat and SetKvFormat helper methods (as seen in bindings/cpp/include/fluss.hpp lines 415-421), but these are not documented in this API reference table. These methods should be added to the documentation for completeness, similar to how log_format and kv_format are documented for the Rust API.

Suggested change
| `SetComment(const std::string& comment) -> Builder&` | Set a table comment |
| `SetComment(const std::string& comment) -> Builder&` | Set a table comment |
| `SetLogFormat(const std::string& format) -> Builder&` | Set the log format |
| `SetKvFormat(const std::string& format) -> Builder&` | Set the key-value format |

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

Choose a reason for hiding this comment

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

Since currently, only default format is support. So, not document the api is fine to me

Comment on lines +249 to +250
| `fn custom_properties(&self) -> &HashMap<String, String>` | Get custom properties |
| `fn comment(&self) -> Option<&str>` | Get table comment |
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

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

The PR description mentions "Add custom properties assertions in integration test" and "Integration tests ran and completed", but this PR only contains documentation updates and no test changes are visible in the diff. The integration test changes may have been committed separately or the PR description may need to be updated to accurately reflect the scope of changes.

Copilot uses AI. Check for mistakes.
@luoyuxia luoyuxia merged commit a950ca9 into apache:main Feb 17, 2026
23 checks passed
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.

Add missing custom properties in C++

3 participants

Comments