-
Notifications
You must be signed in to change notification settings - Fork 902
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
[KYUUBI #3968] Upgrading and migration script for Jdbc #4022
Conversation
|
thanks for driving this @lightning-L could you add apache license header in the new added files? |
https://github.com/apache/kyuubi/actions/runs/3779542104/jobs/6424890802 FYI: you can run the UT locally, |
kyuubi-server/src/main/scala/org/apache/kyuubi/server/metadata/jdbc/JDBCMetadataStore.scala
Outdated
Show resolved
Hide resolved
The ut failure does not make sense. would you like to rebase the code and have a try? |
23256a0
to
70e91ed
Compare
bf014ac
to
0353e70
Compare
initSchemaStream.foreach { inputStream => | ||
initSchemaFile.foreach { schemaFile => | ||
info(s"Init schema file: ${schemaFile.getAbsolutePath}") | ||
val reader = new BufferedReader(new FileReader(schemaFile)) |
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.
will raise a pr to followup it, we have to use inputStream instead of FileReader
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.
FYI:
https://github.com/lightning-L/incubator-kyuubi/pull/1/files
You can use FileReader for UT, but for binary, it is not a File, it is just a Resource.
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.
this is another follow up: #4103
you can merge the https://github.com/lightning-L/incubator-kyuubi/pull/2/files
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.
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.
the UT in #4103 has passed. @lightning-L
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.
LGTM
thanks @lightning-L , merged to master please raise a pr to followup the |
Why are the changes needed?
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