Skip to content

[c++] Add nullability support for data type in c++#525

Merged
fresh-borzoni merged 7 commits intoapache:mainfrom
charlesdong1991:issue-510
May 8, 2026
Merged

[c++] Add nullability support for data type in c++#525
fresh-borzoni merged 7 commits intoapache:mainfrom
charlesdong1991:issue-510

Conversation

@charlesdong1991
Copy link
Copy Markdown
Contributor

Purpose

Preserve nullability when constructing Fluss schemas through the C++ binding. Previously, the C++ DataType class had no nullable flag, so all types defaulted to nullable regardless of what the user specified.

Linked issue: close #510

Tests

All tests have passed locally

Documentation

Docs are updated accordingly.

Copy link
Copy Markdown
Contributor

@leekeiabstraction leekeiabstraction left a comment

Choose a reason for hiding this comment

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

TY for the PR, left a question.

Comment thread bindings/cpp/src/types.rs Outdated
@charlesdong1991
Copy link
Copy Markdown
Contributor Author

thanks for the question. i replied, let me know if further question @leekeiabstraction

if find time, would be great to give a look @fresh-borzoni @leekeiabstraction 🙏

Copy link
Copy Markdown
Member

@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.

@charlesdong1991 Ty for the PR, overall LGTM
Left some comments, PTAL

Comment thread bindings/cpp/src/types.rs Outdated
Comment thread bindings/cpp/src/lib.rs Outdated
Comment thread bindings/cpp/src/ffi_converter.hpp Outdated
Comment thread bindings/cpp/src/types.rs Outdated
@charlesdong1991
Copy link
Copy Markdown
Contributor Author

thanks for great suggestion @fresh-borzoni i split the array from scaler, PTAL!

Copy link
Copy Markdown
Member

@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.

@charlesdong1991 Ty, LGTM 👍

Comment thread bindings/cpp/src/lib.rs
@fresh-borzoni
Copy link
Copy Markdown
Member

@leekeiabstraction Do you have any further comments on this PR?

@fresh-borzoni
Copy link
Copy Markdown
Member

@charlesdong1991 Ty, merging

@fresh-borzoni fresh-borzoni merged commit 860be9e into apache:main May 8, 2026
3 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.

[c++] Add nullability support to DataType in C++ binding

3 participants