-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] create Iceberg table failed if comment is null #1546
Milestone
Comments
please check JDBC table too, @Clearvive |
jerryshao
pushed a commit
that referenced
this issue
Jan 24, 2024
…mment is null (#1653) ### What changes were proposed in this pull request? remove reserveProperties logic from CreateTableRequest since reserved properties is handled by property system ### Why are the changes needed? 1. when build IcebergTable, comment equals to null is checked when comment added to properties . ``` if (null != comment) { icebergTable.properties.putIfAbsent(ICEBERG_COMMENT_FIELD_NAME, comment); } ``` 2. when build CreateTableRequest, the previous implement remove all reserved properties from property map including comment, and then add comment to map, the bug happens, not checking the null, but this overall code is redundant Fix: #1546 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? add UT
mchades
pushed a commit
to mchades/gravitino
that referenced
this issue
Jan 24, 2024
… if comment is null (apache#1653) ### What changes were proposed in this pull request? remove reserveProperties logic from CreateTableRequest since reserved properties is handled by property system ### Why are the changes needed? 1. when build IcebergTable, comment equals to null is checked when comment added to properties . ``` if (null != comment) { icebergTable.properties.putIfAbsent(ICEBERG_COMMENT_FIELD_NAME, comment); } ``` 2. when build CreateTableRequest, the previous implement remove all reserved properties from property map including comment, and then add comment to map, the bug happens, not checking the null, but this overall code is redundant Fix: apache#1546 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? add UT
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe what's wrong
create Iceberg table failed if comment is null
Error message and/or stacktrace
How to reproduce
Additional context
No response
The text was updated successfully, but these errors were encountered: