diff options
author | Davies Liu <davies@databricks.com> | 2015-10-08 17:34:24 -0700 |
---|---|---|
committer | Davies Liu <davies.liu@gmail.com> | 2015-10-08 17:34:24 -0700 |
commit | 3390b400d04e40f767d8a51f1078fcccb4e64abd (patch) | |
tree | d48ed36a14abf0b15467c9ae9c7c04933fdd3a19 /python/pyspark/mllib/linalg | |
parent | 84ea287178247c163226e835490c9c70b17d8d3b (diff) | |
download | spark-3390b400d04e40f767d8a51f1078fcccb4e64abd.tar.gz spark-3390b400d04e40f767d8a51f1078fcccb4e64abd.tar.bz2 spark-3390b400d04e40f767d8a51f1078fcccb4e64abd.zip |
[SPARK-10810] [SPARK-10902] [SQL] Improve session management in SQL
This PR improve the sessions management by replacing the thread-local based to one SQLContext per session approach, introduce separated temporary tables and UDFs/UDAFs for each session.
A new session of SQLContext could be created by:
1) create an new SQLContext
2) call newSession() on existing SQLContext
For HiveContext, in order to reduce the cost for each session, the classloader and Hive client are shared across multiple sessions (created by newSession).
CacheManager is also shared by multiple sessions, so cache a table multiple times in different sessions will not cause multiple copies of in-memory cache.
Added jars are still shared by all the sessions, because SparkContext does not support sessions.
cc marmbrus yhuai rxin
Author: Davies Liu <davies@databricks.com>
Closes #8909 from davies/sessions.
Diffstat (limited to 'python/pyspark/mllib/linalg')
0 files changed, 0 insertions, 0 deletions