You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "bowenliang123 (via GitHub)" <gi...@apache.org> on 2023/06/09 05:49:02 UTC

[GitHub] [kyuubi] bowenliang123 opened a new pull request, #4944: [MINOR] Code improvement for Java

bowenliang123 opened a new pull request, #4944:
URL: https://github.com/apache/kyuubi/pull/4944

   <!--
   Thanks for sending a pull request!
   
   Here are some tips for you:
     1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/CONTRIBUTING.html
     2. If the PR is related to an issue in https://github.com/apache/kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'.
     3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'.
   -->
   
   ### _Why are the changes needed?_
   <!--
   Please clarify why the changes are needed. For instance,
     1. If you add a feature, you can talk about the use case of it.
     2. If you fix a bug, you can clarify why it is a bug.
   -->
   - To satisfied the code scanning suggestion by CodeQL, with no feature changes
     - Ignored error status of call
       - https://github.com/apache/kyuubi/security/code-scanning/88
     - Inefficient empty string test
         - https://github.com/apache/kyuubi/security/code-scanning/87
     - Inefficient String constructor
         - https://github.com/apache/kyuubi/security/code-scanning/84
     - Missing Override annotation
         - https://github.com/apache/kyuubi/security/code-scanning/78
         - https://github.com/apache/kyuubi/security/code-scanning/79
         - https://github.com/apache/kyuubi/security/code-scanning/80
         - https://github.com/apache/kyuubi/security/code-scanning/81
         - https://github.com/apache/kyuubi/security/code-scanning/82
         - https://github.com/apache/kyuubi/security/code-scanning/83
     - Useless toString on String
         - https://github.com/apache/kyuubi/security/code-scanning/108
     - Use of default toString()
         - https://github.com/apache/kyuubi/security/code-scanning/107
     - Unread local variable
         - https://github.com/apache/kyuubi/security/code-scanning/96
     - Random used only once
         - https://github.com/apache/kyuubi/security/code-scanning/192
         - https://github.com/apache/kyuubi/security/code-scanning/191
     - Missing enum case in switch
         - https://github.com/apache/kyuubi/security/code-scanning/193
   
   ### _How was this patch tested?_
   - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
   
   - [ ] Add screenshots for manual tests if appropriate
   
   - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org


[GitHub] [kyuubi] bowenliang123 commented on pull request #4944: [MINOR] Code improvement for Java

Posted by "bowenliang123 (via GitHub)" <gi...@apache.org>.
bowenliang123 commented on PR #4944:
URL: https://github.com/apache/kyuubi/pull/4944#issuecomment-1584536556

   Thanks, merged to master.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org


[GitHub] [kyuubi] codecov-commenter commented on pull request #4944: [MINOR] Code improvement for Java

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #4944:
URL: https://github.com/apache/kyuubi/pull/4944#issuecomment-1584126794

   ## [Codecov](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   > Merging [#4944](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (b1b4dfa) into [master](https://app.codecov.io/gh/apache/kyuubi/commit/a9fcf3f280fd8aab3f18cfffe1e8a25c316dffad?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (a9fcf3f) will **not change** coverage.
   > The diff coverage is `0.00%`.
   
   ```diff
   @@          Coverage Diff           @@
   ##           master   #4944   +/-   ##
   ======================================
     Coverage    0.00%   0.00%           
   ======================================
     Files         563     563           
     Lines       30884   30882    -2     
     Branches     4030    4030           
   ======================================
   + Misses      30884   30882    -2     
   ```
   
   
   | [Impacted Files](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [...in/java/org/apache/hive/beeline/KyuubiBeeLine.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtYmVlbGluZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvaGl2ZS9iZWVsaW5lL0t5dXViaUJlZUxpbmUuamF2YQ==) | `0.00% <0.00%> (ø)` | |
   | [...n/java/org/apache/hive/beeline/KyuubiCommands.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtYmVlbGluZS9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvaGl2ZS9iZWVsaW5lL0t5dXViaUNvbW1hbmRzLmphdmE=) | `0.00% <0.00%> (ø)` | |
   | [.../java/org/apache/kyuubi/jdbc/KyuubiHiveDriver.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtamRiYy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUva3l1dWJpL2pkYmMvS3l1dWJpSGl2ZURyaXZlci5qYXZh) | `0.00% <0.00%> (ø)` | |
   | [...pache/kyuubi/jdbc/hive/KyuubiDatabaseMetaData.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtamRiYy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUva3l1dWJpL2pkYmMvaGl2ZS9LeXV1YmlEYXRhYmFzZU1ldGFEYXRhLmphdmE=) | `0.00% <0.00%> (ø)` | |
   | [...c/main/java/org/apache/kyuubi/jdbc/hive/Utils.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtamRiYy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUva3l1dWJpL2pkYmMvaGl2ZS9VdGlscy5qYXZh) | `0.00% <0.00%> (ø)` | |
   | [...he/kyuubi/jdbc/hive/ZooKeeperHiveClientHelper.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtamRiYy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUva3l1dWJpL2pkYmMvaGl2ZS9ab29LZWVwZXJIaXZlQ2xpZW50SGVscGVyLmphdmE=) | `0.00% <0.00%> (ø)` | |
   | [.../org/apache/kyuubi/jdbc/hive/cli/ColumnBuffer.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtamRiYy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUva3l1dWJpL2pkYmMvaGl2ZS9jbGkvQ29sdW1uQnVmZmVyLmphdmE=) | `0.00% <0.00%> (ø)` | |
   | [.../java/org/apache/kyuubi/jdbc/hive/common/Date.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtamRiYy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUva3l1dWJpL2pkYmMvaGl2ZS9jb21tb24vRGF0ZS5qYXZh) | `0.00% <ø> (ø)` | |
   | [.../org/apache/kyuubi/jdbc/hive/common/Timestamp.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtamRiYy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUva3l1dWJpL2pkYmMvaGl2ZS9jb21tb24vVGltZXN0YW1wLmphdmE=) | `0.00% <ø> (ø)` | |
   | [...pache/kyuubi/jdbc/hive/common/TimestampTZUtil.java](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-a3l1dWJpLWhpdmUtamRiYy9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUva3l1dWJpL2pkYmMvaGl2ZS9jb21tb24vVGltZXN0YW1wVFpVdGlsLmphdmE=) | `0.00% <0.00%> (ø)` | |
   | ... and [2 more](https://app.codecov.io/gh/apache/kyuubi/pull/4944?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org


[GitHub] [kyuubi] bowenliang123 closed pull request #4944: [MINOR] Code improvement for Java

Posted by "bowenliang123 (via GitHub)" <gi...@apache.org>.
bowenliang123 closed pull request #4944: [MINOR] Code improvement for Java
URL: https://github.com/apache/kyuubi/pull/4944


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org