-
Notifications
You must be signed in to change notification settings - Fork 378
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
[#4845] fix(core): Fix bugs when updating metalake or catalog with nullable comment. #4846
Conversation
Do we have similar issue for "topic"? |
This problem only occurs in conditions like where or on predicate and the root cause is
will return false. The update method for "topic" is |
This PR is an improvement for #4541. |
@@ -150,7 +150,8 @@ CatalogPO selectCatalogMetaByMetalakeIdAndName( | |||
+ " AND metalake_id = #{oldCatalogMeta.metalakeId}" | |||
+ " AND type = #{oldCatalogMeta.type}" | |||
+ " AND provider = #{oldCatalogMeta.provider}" | |||
+ " AND catalog_comment = #{oldCatalogMeta.catalogComment}" | |||
+ " AND (catalog_comment = #{oldCatalogMeta.catalogComment} " | |||
+ " or (catalog_comment is null and #{oldCatalogMeta.catalogComment} is null))" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please change to "IS NULL" for reserved words?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE
…llable comment. (#4846) ### What changes were proposed in this pull request? Change the update SQL in the mapper to handle nullable comment. ### Why are the changes needed? It's a bug to fix. Fix: #4845 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? Added UTs and ITs
What changes were proposed in this pull request?
Change the update SQL in the mapper to handle nullable comment.
Why are the changes needed?
It's a bug to fix.
Fix: #4845
Does this PR introduce any user-facing change?
N/A
How was this patch tested?
Added UTs and ITs