tispark
tispark copied to clipboard
[BUG] TiSession should not be cached
Describe the bug
TiSession was cached by distinct value of SparkConf. However, it is possible that multiple SparkSession share the same SparkConf, thus the SparkSession that TiSession points to is not guaranteed to be the same as SparkSession.getActiveSession/SparkSession.getDefaultSession().
Spark and TiSpark version info
master, release-2.2