Skip to content
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

Simplify and improve log for JDBCMetadataStore #4464

Closed
wants to merge 1 commit into from

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Mar 6, 2023

Why are the changes needed?

  1. enhance the log to include parameters for the prepared statement
  2. remove redundant spaces from SQL
  3. simplify code by using JdbcUtils

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 locally before make a pull request

var connection: Connection = null
try {
connection = hikariDataSource.getConnection
connection.setAutoCommit(autoCommit)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autoCommit always is true in whole codebase

@pan3793 pan3793 self-assigned this Mar 7, 2023
@pan3793 pan3793 added this to the v1.7.1 milestone Mar 7, 2023
@pan3793 pan3793 closed this in 3310429 Mar 7, 2023
pan3793 added a commit that referenced this pull request Mar 7, 2023
### _Why are the changes needed?_

1. enhance the log to include parameters for the prepared statement
2. remove redundant spaces from SQL
3. simplify code by using `JdbcUtils`

### _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

- [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #4464 from pan3793/jdbc.

Closes #4464

c3ae84f [Cheng Pan] Simplify and improve log for JDBCMetadataStore

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Cheng Pan <chengpan@apache.org>
(cherry picked from commit 3310429)
Signed-off-by: Cheng Pan <chengpan@apache.org>
@pan3793
Copy link
Member Author

pan3793 commented Mar 7, 2023

Thanks, merged to master/1.7

@pan3793 pan3793 deleted the jdbc branch October 7, 2023 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants