Github user kunal642 commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2981#discussion_r240026585 --- Diff: integration/spark-datasource/src/test/scala/org/apache/spark/sql/carbondata/datasource/SparkCarbonDataSourceTest.scala --- @@ -998,9 +999,19 @@ class SparkCarbonDataSourceTest extends FunSuite with BeforeAndAfterAll { i += 1 } writer.close() - spark.sql("create table complextable (stringfield string, structfield struct<bytefield: " + - "byte, floatfield: float>) " + - s"using carbon location '$path'") + if (SparkUtil.isSparkVersionEqualTo("2.1")) { + if (!FileFactory.isFileExist(path)) { + FileFactory.createDirectoryAndSetPermission(path, + new FsPermission(FsAction.ALL, FsAction.ALL, FsAction.ALL)) + } + spark.sql("create table complextable (stringfield string, structfield struct<bytefield: " + + "byte, floatfield: float>) " + + s"using carbon options(path '$path')") + } else if (SparkUtil.isSparkVersionXandAbove("2.2")) { --- End diff -- change the else if to else so that the same command can run for 2.3 as well. Change the same for other tests as well
---