-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Alter Index SQL statement (#286)
* FlintClient api for update index mapping Signed-off-by: Sean Kao <[email protected]> * FlintSpark api for update index Signed-off-by: Sean Kao <[email protected]> * visitPropertyList return map, not IndexOptions This is to preserve the raw options specified in user sql statement. This is required by alter index statement. Signed-off-by: Sean Kao <[email protected]> * change FlintSpark update index interface Signed-off-by: Sean Kao <[email protected]> * cancelIndex api and transaction test Signed-off-by: Sean Kao <[email protected]> * AST builder for alter skipping index Signed-off-by: Sean Kao <[email protected]> * refactor Signed-off-by: Sean Kao <[email protected]> * more test cases for update skipping index Signed-off-by: Sean Kao <[email protected]> * refactor and resolve race condition Signed-off-by: Sean Kao <[email protected]> * alter covering index; sanity test Signed-off-by: Sean Kao <[email protected]> * remove outdated comment Signed-off-by: Sean Kao <[email protected]> * update covering index suite Signed-off-by: Sean Kao <[email protected]> * alter mv; sanity test Signed-off-by: Sean Kao <[email protected]> * rename var name in AST builder for clarity Signed-off-by: Sean Kao <[email protected]> * fix mv sql test Signed-off-by: Sean Kao <[email protected]> * validate should update auto_refresh option Signed-off-by: Sean Kao <[email protected]> * decide update mode in AST builder Signed-off-by: Sean Kao <[email protected]> * move UpdateMode to FlintSpark Signed-off-by: Sean Kao <[email protected]> * move update test suite into its own class Signed-off-by: Sean Kao <[email protected]> * update documentation Signed-off-by: Sean Kao <[email protected]> * update validation rule Signed-off-by: Sean Kao <[email protected]> * remove unnecessary log Signed-off-by: Sean Kao <[email protected]> * fix test code & comment Signed-off-by: Sean Kao <[email protected]> * fix test cases for update option validation Signed-off-by: Sean Kao <[email protected]> * test case for update options validation Signed-off-by: Sean Kao <[email protected]> * scalafmtAll Signed-off-by: Sean Kao <[email protected]> * refactor: client update index Signed-off-by: Sean Kao <[email protected]> * refactor: move update index logic to flintspark Signed-off-by: Sean Kao <[email protected]> * refactor: rename updateIndexMapping in rest client Signed-off-by: Sean Kao <[email protected]> * refactors * Use FlintSparkIndexOptions, instead of options Map * Define merge operation * Remove UpdateMode * Have updateIndexOptions return FlintSparkIndex Signed-off-by: Sean Kao <[email protected]> * refactor: move validation to Options class Signed-off-by: Sean Kao <[email protected]> * refactor: Builder for index copy with update Signed-off-by: Sean Kao <[email protected]> * scalafmtAll Signed-off-by: Sean Kao <[email protected]> * move validation to FlintSpark Signed-off-by: Sean Kao <[email protected]> * add test case for race update; will fail Signed-off-by: Sean Kao <[email protected]> * solve update index race condition Signed-off-by: Sean Kao <[email protected]> * refactor: rename in test cases Signed-off-by: Sean Kao <[email protected]> * refactor: parameterize failure test cases Signed-off-by: Sean Kao <[email protected]> * scalafmtAll Signed-off-by: Sean Kao <[email protected]> * refactor: parameterize success test cases Signed-off-by: Sean Kao <[email protected]> * use new tempDir for checkpoint in every test case Signed-off-by: Sean Kao <[email protected]> * fix error after merging main Signed-off-by: Sean Kao <[email protected]> --------- Signed-off-by: Sean Kao <[email protected]>
- Loading branch information
1 parent
e87d330
commit a38747f
Showing
21 changed files
with
1,153 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.