Github user zzcclp commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1469#discussion_r152921148
--- Diff:
integration/spark-common-cluster-test/src/test/scala/org/apache/carbondata/cluster/sdv/generated/CarbonV1toV3CompatabilityTestCase.scala
---
@@ -49,8 +49,10 @@ class CarbonV1toV3CompatabilityTestCase extends
QueryTest with BeforeAndAfterAll
.getOrCreateCarbonSession(storeLocation,
metaLocation).asInstanceOf[CarbonSession]
println("store path from env : " +
CarbonEnv.getInstance(localspark).storePath)
localspark.sparkContext.setLogLevel("WARN")
- localspark.sessionState.asInstanceOf[CarbonSessionState].metadataHive
- .runSqlHive(
+
localspark.asInstanceOf[CarbonSession].asInstanceOf[CarbonSession].sharedState.externalCatalog
+ .asInstanceOf[HiveExternalCatalog].client.runSqlHive(
--- End diff --
I just commented this line temporarily, use spark.run to run this sql,
because class HiveExternalCatalog cannot be accessed in non-org.apache.spark
package.
---