[#8656] Improvement: add UTs and fix a NPE in TableUpdatesRequest.java #8738
[#8656] Improvement: add UTs and fix a NPE in TableUpdatesRequest.java #8738playasim wants to merge 5 commits intoapache:mainfrom
Conversation
|
Thanks for the unit tests and changes, however, changing checkNotNull to checkArgument wasn't what I had in mind. To be more explicit: |
|
While making those changes, you may want to update the JavaDoc for UpdateTableColumnNullabilityRequest and ensure the messaging is more consistent, i.e., some messages state “cannot be empty” for null checks, while others use “cannot be null”. |
|
@playasim |
Sure. I will push the new commit in next coming days. |
|
Hi @justinmclean ,added more UTs and enhanced on the request mentioned above.(I've checked RenameTableRequest and the validate method seems fine) Please help review the PR. @yuqi1129 , in this PR I only changed |
OK. If raising such a large PR is a challenge for you, you can use another PR to resolve it. |
|
Hi all, |
What changes were proposed in this pull request?
Add UTs for TableUpdatesRequest.java validate method.
Also There are 2 validate methods throw NPE when arguments is invalid.
Why are the changes needed?
Add UTs to make sure validate logic.
Fix: #8656
Does this PR introduce any user-facing change?
NO
How was this patch tested?
Passed all UTs