Github user jackylk commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1620#discussion_r155254781
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/parser/CarbonSpark2SqlParser.scala
---
@@ -247,7 +248,7 @@ class CarbonSpark2SqlParser extends CarbonDDLSqlParser {
val unresolvedrelation =
CarbonReflectionUtils.getUnresolvedRelation(
tableIdentifier,
- SparkSession.getActiveSession.get.version,
+ SPARK_VERSION,
--- End diff --
can you remove this parameter and do if check inside
`CarbonReflectionUtils.getUnresolvedRelation`
---