Github user zzcclp commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/2961#discussion_r237722775
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSession.scala ---
@@ -180,7 +180,7 @@ object CarbonSession {
val userSuppliedContext: Option[SparkContext] =
getValue("userSuppliedContext",
builder).asInstanceOf[Option[SparkContext]]
- if (metaStorePath != null) {
+ if (metaStorePath != null && !metaStorePath.trim.isEmpty) {
--- End diff --
Use StringUtils.isNotBlank.
---