Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1469#discussion_r153060970
  
    --- Diff: 
integration/spark-common/src/main/scala/org/apache/spark/sql/optimizer/CarbonDecoderOptimizerHelper.scala
 ---
    @@ -84,7 +98,16 @@ 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
    +
    +        sparkVersion21 = !CarbonReflectionUtils.hasField("query", 
InsertIntoTable)
    --- End diff --
    
    Based on the version availability from spark check the version not depends 
on the field.


---

Reply via email to