You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by ravipesala <gi...@git.apache.org> on 2017/12/03 15:03:46 UTC
[GitHub] carbondata pull request #1604: [CARBONDATA-1843] Block CTAS and external tab...
Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1604#discussion_r154526332
--- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSession.scala ---
@@ -58,7 +59,12 @@ class CarbonSession(@transient val sc: SparkContext,
*/
@transient
override lazy val sharedState: SharedState = {
- existingSharedState.getOrElse(new SharedState(sparkContext))
+ if (existingSharedState.isDefined) {
--- End diff --
Better use `match {case}`
---