Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9130563
Squashed commit of the following:
Mar 16, 2016
aa80f9c
Refactor SQLContext etc. to take in ExternalCatalog
Mar 17, 2016
1f1dd00
Attempt to remove old catalog from SessionState
Mar 17, 2016
5daa696
Merge branch 'master' of github.com:apache/spark into use-session-cat…
Mar 17, 2016
71a01e0
Fix style
Mar 17, 2016
9f5154f
Replace all usages of analysis.Catalog
Mar 17, 2016
78cbcbd
Fix tests
Mar 18, 2016
5e16480
Fix tests round 2
Mar 18, 2016
57c8c29
Fix MiMa
Mar 18, 2016
c439280
Merge branch 'master' of github.com:apache/spark into use-session-cat…
Mar 18, 2016
a3c6bf7
Minor fixes
Mar 18, 2016
193d93c
sessionState.sessionCatalog -> sessionState.catalog
Mar 18, 2016
f089e2b
Fix tests round 3 (small round)
Mar 18, 2016
9cd89f8
Merge branch 'master' of github.com:apache/spark into use-session-cat…
Mar 19, 2016
f41346b
Don't bother sessionizing HiveCatalog
Mar 19, 2016
4b37d7a
Fix tests (round 4) - ignored test in CliSuite
Mar 19, 2016
1e72b0a
Merge branch 'master' of github.com:apache/spark into use-session-cat…
Mar 21, 2016
52e0273
Clear temp tables after each suite
Mar 21, 2016
19750d7
Require DB exists before showing tables on them
Mar 21, 2016
561ca3c
Fix tests
Mar 21, 2016
b9de78c
Fix MultiDatabaseSuite
Mar 21, 2016
536cea2
Merge branch 'master' of github.com:apache/spark into use-session-cat…
Mar 22, 2016
4133d3f
Fix HiveUDFSuite + add tests
Mar 22, 2016
159e51c
Fix HiveCompatibilitySuite?
Mar 22, 2016
542283c
Fix CliSuite
Mar 22, 2016
98751cc
Merge branch 'master' of github.com:apache/spark into use-session-cat…
Mar 22, 2016
16a54ba
Fix HiveQuerySuite?
Mar 22, 2016
3439dc2
Ignore new test for now...
Mar 22, 2016
e552558
Fix HiveContextSuite?
Mar 23, 2016
5ea8469
Revert "Fix HiveContextSuite?"
Mar 23, 2016
9519cd8
Merge branch 'master' of github.com:apache/spark into use-session-cat…
Mar 23, 2016
e5f82b2
Use default as the db.
yhuai Mar 23, 2016
c53f483
Merge branch 'master' of github.com:apache/spark into use-session-cat…
Mar 23, 2016
350bd2e
Fix R test?
Mar 23, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clear temp tables after each suite
  • Loading branch information
Andrew Or committed Mar 21, 2016
commit 52e027367dc03fcdec1aab7792f6e332e16f14a7
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,14 @@ class SessionCatalog(externalCatalog: ExternalCatalog, conf: CatalystConf) {
*/
def refreshTable(name: TableIdentifier): Unit = { /* no-op */ }

/**
* Drop all existing temporary tables.
* For testing only.
*/
def clearTempTables(): Unit = {
tempTables.clear()
}

/**
* Return a temporary table exactly as it was stored.
* For testing only.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ class TestHiveContext private[hive](

cacheManager.clearCache()
loadedTables.clear()
sessionState.catalog.clearTempTables()
sessionState.catalog.invalidateCache()
metadataHive.reset()

Expand Down