Skip to content

[KYUUBI #4950][FOLLOWUP] Misc improvement for usage of SQLite#4953

Closed
pan3793 wants to merge 1 commit intoapache:masterfrom
pan3793:sqlite-followup
Closed

[KYUUBI #4950][FOLLOWUP] Misc improvement for usage of SQLite#4953
pan3793 wants to merge 1 commit intoapache:masterfrom
pan3793:sqlite-followup

Conversation

@pan3793
Copy link
Member

@pan3793 pan3793 commented Jun 13, 2023

Why are the changes needed?

  • Improve log on executing init schema DDL.
  • Add IF NOT EXISTS on CREATE INDEX statement.
  • Fix kyuubi.metadata.store.jdbc.url configuration description.
  • Delete SQLite files on performing build/mvn clean

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

@pan3793 pan3793 requested a review from bowenliang123 June 13, 2023 06:16
@pan3793 pan3793 requested a review from cfmcgrady June 13, 2023 06:16
@codecov-commenter
Copy link

Codecov Report

Merging #4953 (a0b44f3) into master (0f27e81) will not change coverage.
The diff coverage is 0.00%.

@@          Coverage Diff           @@
##           master   #4953   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         563     563           
  Lines       30949   30954    +5     
  Branches     4033    4033           
======================================
- Misses      30949   30954    +5     
Impacted Files Coverage Δ
...yuubi/server/metadata/jdbc/JDBCMetadataStore.scala 0.00% <0.00%> (ø)
...i/server/metadata/jdbc/JDBCMetadataStoreConf.scala 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -26,10 +26,10 @@ CREATE TABLE IF NOT EXISTS metadata(
peer_instance_closed boolean default '0' -- closed by peer kyuubi instance
);
Copy link
Contributor

Choose a reason for hiding this comment

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

curious, as JDBCMetadataStore#getLatestSchemaUrl always return the latest version of metadata store schema, and the SQLite support has been available since v1.8.0, do we still need to provide metadata-store-schema-1.6.0.sqlite.sql?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, we don't need that. Let's fix it and remove it later, to provide a valid example for future changes.

@pan3793 pan3793 self-assigned this Jun 13, 2023
@pan3793 pan3793 added this to the v1.8.0 milestone Jun 13, 2023
@pan3793 pan3793 closed this in f69cf94 Jun 13, 2023
@pan3793 pan3793 deleted the sqlite-followup branch October 7, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants