-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17045] [SQL] Build/move Join-related test cases in SQLQueryTestSuite #14625
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 2 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
6f575a0
first attempt.
gatorsmile 9888f8a
add files
gatorsmile 239191c
batch 1
gatorsmile aaeb298
batch 1
gatorsmile 5f22316
revert
gatorsmile 3fe55f1
batch 2
gatorsmile 98f7f11
added meaningful comments
gatorsmile a26bdeb
added meaningful comments
gatorsmile cdea1a3
added meaningful comments
gatorsmile 9c67e69
batch 3
gatorsmile 5bd85c2
two more cases
gatorsmile 7bf9739
code clean
gatorsmile 701bd74
address comments
gatorsmile 376e99a
add using joins.
gatorsmile 7c6f85a
using cast for null.
gatorsmile 4bd38d2
move outer joins to outer-join.sql and move left-semi join to left-se…
gatorsmile a059c77
more test cases
gatorsmile cf9a233
code clean
gatorsmile b4801e0
code clean
gatorsmile 5ecfc4f
Merge remote-tracking branch 'upstream/master' into auto_join
gatorsmile bf55624
update based on the lastest fix.
gatorsmile 42b3c69
remove the comments (xyz.q)
gatorsmile 1118626
change the table name for testData and testData2
gatorsmile c73134e
rename src by duplicateRowData
gatorsmile a204f52
rename src1 by nullData
gatorsmile 046c3c3
rename srcpart by partitionedData
gatorsmile 9c6be8e
Merge remote-tracking branch 'upstream/master' into auto_join
gatorsmile 1969ca2
fix.
gatorsmile e2677da
revert
gatorsmile 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| select sum(hash(a.k1,a.v1,a.k2, a.v2)) | ||
| from ( | ||
| SELECT src1.key as k1, src1.value as v1, | ||
| src2.key as k2, src2.value as v2 FROM | ||
| (SELECT * FROM src WHERE src.key < 10) src1 | ||
| JOIN | ||
| (SELECT * FROM src WHERE src.key < 10) src2 | ||
| SORT BY k1, v1, k2, v2 | ||
| ) a; | ||
18 changes: 18 additions & 0 deletions
18
sql/core/src/test/resources/sql-tests/results/auto_join0.sql.out
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 |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| -- Automatically generated by SQLQueryTestSuite | ||
| -- Number of queries: 1 | ||
|
|
||
|
|
||
| -- !query 0 | ||
| select sum(hash(a.k1,a.v1,a.k2, a.v2)) | ||
| from ( | ||
| SELECT src1.key as k1, src1.value as v1, | ||
| src2.key as k2, src2.value as v2 FROM | ||
| (SELECT * FROM src WHERE src.key < 10) src1 | ||
| JOIN | ||
| (SELECT * FROM src WHERE src.key < 10) src2 | ||
| SORT BY k1, v1, k2, v2 | ||
| ) a | ||
| -- !query 0 schema | ||
| struct<sum(hash(k1, v1, k2, v2)):bigint> | ||
| -- !query 0 output | ||
| 42294652308 |
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.
we don't guarantee hash consistency across versions so I'm not sure if it is a good idea to use hash here.