-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9580] [SQL] Replace singletons in SQL tests #8111
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 1 commit
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
16ca7ac
It compiles!!
5e6a20c
Refactor SQLTestUtils to reduce duplication
d1d1449
Remove HiveTest singleton
d4aafb1
Avoid the need to switch to HiveContexts
6345cee
Clean up JsonSuite
68ac6fe
Rename the test traits properly
b15fdc6
Stop SparkContext in Java SQL tests
0d74a72
Load test data early in case tables are accessed by name
eee415d
Refactor implicits into SQLTestUtils
55d0b1b
Fix Java not serializable exception in tests
4f59bee
Fix DataSourceTest et al.
88d4f16
Fix hive tests to use the same pattern
5fe4bfb
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
c4a22bc
Fix compile after resolving merge conflicts
d9a8390
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
f5619f8
Fix test compile after resolving merge conflicts
9395cfa
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
c51b3d8
Fix OuterJoinSuite
997715e
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
1400770
Fix style
c92a3b0
Fix MiMa
4debedf
Clean up inheritance in test util traits
ca87dda
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
1cf53ad
Create new context in SBT console by default
bc5c999
Fix SemiJoinSuite
19fd6c3
Fix InnerJoinSuite
e1e513e
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
1e4c321
Address comments
54848e2
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
94f9c77
Revert the removal of some BeforeAndAfters
bec7d28
Fix a hive test + minor format updates
24c086d
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
561eacc
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
aaba277
Fix places where we override before / after alls
aac8f7f
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
40959bb
Fix test
55d6624
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
4ed58c8
Revert a few merge-conflict-induced unintentional changes
0ce5638
Minor updates
814df2f
Add back singletons but deprecate them
099c74f
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
451fa37
Use consistent name for added back singletons
9ea7f7c
Fix style
ddc4b05
Revert "Use consistent name for added back singletons"
ece3a81
Remove TestSQLContext, but keep TestHive
94cc3b5
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
8d69bf8
Fix test
7a0b1ef
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
b58ae73
Fix tests
828144f
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
c4d44c9
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
48af8e4
Fix another before / after alls
0606c82
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
f599bbc
Revert all Hive related changes
aed7fc7
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
d85a6d8
Add a shorthand for sqlContext.sql / ctx.sql
0b60325
Fix hive test compile
821ea67
Merge branch 'master' of github.com:apache/spark into sql-tests-refactor
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
Remove HiveTest singleton
This allows us to use custom SparkContexts in hive tests.
- Loading branch information
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
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
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
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
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
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
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
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.
Can we deprecate this instead of removing it? I think its fairly common for people to use this for their own unit tests.
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.
do you mean outside of Spark? The point is to never use this in Spark tests, since even referencing it will destabilize the tests because it leaves two overlapping
SparkContexts in the same JVMThere 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.
Yes, we can avoid it in our own tests, but I know for a fact that it is used externally.
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.
OK, I've added these back with a deprecation warning in the latest commit.