Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1469#discussion_r152570507
--- Diff:
integration/spark-common/src/main/scala/org/apache/spark/sql/optimizer/CarbonDecoderOptimizerHelper.scala
---
@@ -84,7 +106,19 @@ class CarbonDecoderProcessor {
}
nodeList.add(ArrayCarbonNode(nodeListSeq))
case e: UnaryNode => process(e.child, nodeList)
- case i: InsertIntoTable => process(i.child, nodeList)
+ case i: InsertIntoTable =>
+ var sparkVersion21: Boolean = false
+ if
(typeOf[InsertIntoTable].members.filter(!_.isMethod).toList.contains("query")) {
+ sparkVersion21 = false
--- End diff --
you can get the version from sparkcontext , no need to check like this
---