Github user ravipesala commented on a diff in the pull request: https://github.com/apache/incubator-carbondata/pull/412#discussion_r92742973 --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/CarbonLateDecodeStrategy.scala --- @@ -87,19 +90,17 @@ private[sql] class CarbonLateDecodeStrategy extends SparkStrategy { private[this] def toCatalystRDD( relation: LogicalRelation, output: Seq[Attribute], - rdd: RDD[Row], + rdd: RDD[InternalRow], needDecode: ArrayBuffer[AttributeReference]): RDD[InternalRow] = { - val newRdd = if (needDecode.size > 0) { + if (needDecode.size > 0) { + rdd.asInstanceOf[CarbonScanRDD].setVectorReaderSupport(false) getDecoderRDD(relation, needDecode, rdd, output) --- End diff -- if vector reader is true and `needDecode.size > 0` then it uses dictionary decoder rdd in its parent.But decoder rdd is not capable of handling columnar batches. I will raise another PR to move the decoder RDD logic to carbon layer.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---