-
Notifications
You must be signed in to change notification settings - Fork 1k
PHOENIX-1639 Enhance function/expression index tests #36
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
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5aa273f
Enhance expression index tests
3ace0d9
minor
twdsilva 2270319
Merge remote-tracking branch 'upstream/master' into func_tests
twdsilva 0629f89
merged
twdsilva 35cb312
minor
twdsilva cb7834b
more tests
8de3b45
added view tests
twdsilva 5e30c7d
added negative tests
twdsilva e835386
minor
3dacd74
minor
4363d5d
Merge remote-tracking branch 'upstream/master' into func_tests
c6c91f4
fix test mistakes
e595cef
fix test
twdsilva ae8450c
Merge remote-tracking branch 'upstream/master' into func_tests
twdsilva 29a9912
minor
twdsilva 7248529
remove unnessecary check
twdsilva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,7 +130,7 @@ protected void testUpdatableViewIndex(Integer saltBuckets, boolean localIndex) t | |
| rs = conn.createStatement().executeQuery("EXPLAIN " + query); | ||
| String queryPlan = QueryUtil.getExplainPlan(rs); | ||
| if (localIndex) { | ||
| assertEquals("CLIENT PARALLEL 3-WAY RANGE SCAN OVER _LOCAL_IDX_T [-32768,51]\n" | ||
| assertEquals("CLIENT PARALLEL "+ (saltBuckets == null ? 1 : saltBuckets) +"-WAY RANGE SCAN OVER _LOCAL_IDX_T [-32768,51]\n" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added this so that I could add testNonSaltedUpdatableViewWithLocalIndex to ViewIT |
||
| + " SERVER FILTER BY FIRST KEY ONLY\n" | ||
| + "CLIENT MERGE SORT", | ||
| queryPlan); | ||
|
|
@@ -166,7 +166,7 @@ protected void testUpdatableViewIndex(Integer saltBuckets, boolean localIndex) t | |
| assertFalse(rs.next()); | ||
| rs = conn.createStatement().executeQuery("EXPLAIN " + query); | ||
| if (localIndex) { | ||
| assertEquals("CLIENT PARALLEL 3-WAY RANGE SCAN OVER _LOCAL_IDX_T [" + (Short.MIN_VALUE+1) + ",'foo']\n" | ||
| assertEquals("CLIENT PARALLEL "+ (saltBuckets == null ? 1 : saltBuckets) +"-WAY RANGE SCAN OVER _LOCAL_IDX_T [" + (Short.MIN_VALUE+1) + ",'foo']\n" | ||
| + " SERVER FILTER BY FIRST KEY ONLY\n" | ||
| + "CLIENT MERGE SORT",QueryUtil.getExplainPlan(rs)); | ||
| } else { | ||
|
|
||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,6 +108,11 @@ public void testNonSaltedUpdatableViewWithIndex() throws Exception { | |
| testUpdatableViewWithIndex(null, false); | ||
| } | ||
|
|
||
| @Test | ||
| public void testNonSaltedUpdatableViewWithLocalIndex() throws Exception { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test condition was missing so I added it |
||
| testUpdatableViewWithIndex(null, true); | ||
| } | ||
|
|
||
| @Test | ||
| public void testUpdatableOnUpdatableView() throws Exception { | ||
| testUpdatableView(null); | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 test was not verify the index rows , so I added this.