Github user xubo245 commented on a diff in the pull request: https://github.com/apache/carbondata/pull/3054#discussion_r245890480 --- Diff: examples/spark2/src/main/scala/org/apache/carbondata/examples/util/ExampleUtils.scala --- @@ -30,13 +30,17 @@ object ExampleUtils { .getCanonicalPath val storeLocation: String = currentPath + "/target/store" - def createCarbonSession(appName: String, workThreadNum: Int = 1): SparkSession = { + def createCarbonSession (appName: String, workThreadNum: Int = 1, + storePath: String = null): SparkSession = { val rootPath = new File(this.getClass.getResource("/").getPath - + "../../../..").getCanonicalPath - val storeLocation = s"$rootPath/examples/spark2/target/store" + + "../../../..").getCanonicalPath + var storeLocation = s"$rootPath/examples/spark2/target/store" val warehouse = s"$rootPath/examples/spark2/target/warehouse" val metaStoreDB = s"$rootPath/examples/spark2/target" + if (storePath != null) { + storeLocation = storePath; + } --- End diff -- ok
---