Uh oh!
There was an error while loading. Please reload this page.
PHOENIX-6557 Fix code problems flagged by SpotBugs as High priority - #1319
PHOENIX-6557 Fix code problems flagged by SpotBugs as High priority#1319stoty wants to merge 2 commits into
Conversation
| <Class name="~org\.apache\.phoenix\.coprocessor\.generated\..*" /> | ||
| </Match> | ||
| <Match> | ||
| <BugPattern name="NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE" /> |
There was a problem hiding this comment.
Good to comment what we are excluding here, just a short text is fine
There was a problem hiding this comment.
Done.
Also removed the synamic SQL Statement exlcusion, and opened PHOENIX-6560 as a follow-up
stoty
commented
Sep 21, 2021
💔 -1 overall
This message was automatically generated. |
stoty
commented
Sep 21, 2021
💔 -1 overall
This message was automatically generated. |
stoty
commented
Sep 21, 2021
💔 -1 overall
This message was automatically generated. |
stoty
commented
Sep 22, 2021
💔 -1 overall
This message was automatically generated. |
stoty
commented
Sep 22, 2021
💔 -1 overall
This message was automatically generated. |
richardantal
left a comment
There was a problem hiding this comment.
Looks good overall, but left some nits.
I see there is a separate ticket to handle the remaining SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE problems at https://issues.apache.org/jira/browse/PHOENIX-6560 .
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| public MetaDataMutationResult getSchema(String schemaName, long clientTimestamp) throws SQLException { | ||
| try { | ||
| PSchema schema = metaData.getSchema(new PTableKey(null, schemaName)); | ||
| new MetaDataMutationResult(MutationCode.SCHEMA_ALREADY_EXISTS, schema, 0); |
There was a problem hiding this comment.
I see that your change behaves the same way as it was before but, shouldn't we return this?
There was a problem hiding this comment.
No, this is a dummy class for certain tests.
See the javadoc comment on the class.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
stoty
commented
Sep 27, 2021
Thanks for the review @richardantal . |
A lot of this patch is setting the character sets, and boxing/unboxing optimizations, but there are a handful of actual bug fixes hidden in there.