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

    
https://github.com/apache/incubator-carbondata/pull/653#discussion_r105921062
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/CarbonDictionaryDecoder.scala
 ---
    @@ -200,6 +201,123 @@ case class CarbonDictionaryDecoder(
         }
       }
     
    +  override def doConsume(ctx: CodegenContext, input: Seq[ExprCode], row: 
ExprCode): String = {
    +
    +    val storePath = CarbonEnv.get.carbonMetastore.storePath
    +    val absoluteTableIdentifiers = relations.map { relation =>
    +      val carbonTable = 
relation.carbonRelation.carbonRelation.metaData.carbonTable
    +      (carbonTable.getFactTableName, 
carbonTable.getAbsoluteTableIdentifier)
    +    }.toMap
    +
    +    if (isRequiredToDecode) {
    +      val cacheProvider: CacheProvider = CacheProvider.getInstance
    +      val forwardDictionaryCache: Cache[DictionaryColumnUniqueIdentifier, 
Dictionary] =
    +        cacheProvider.createCache(CacheType.FORWARD_DICTIONARY, storePath)
    +      val dicts: Seq[ForwardDictionaryWrapper] = 
getDictionaryWrapper(absoluteTableIdentifiers,
    +        forwardDictionaryCache, storePath)
    +
    +      val exprs = child.output.map(x =>
    +        ExpressionCanonicalizer.execute(BindReferences.bindReference(x, 
child.output)))
    +      ctx.currentVars = input
    +      val resultVars = exprs.zipWithIndex.map { e =>
    --- End diff --
    
    change `e` to `case (expr, index)`


---
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.
---

Reply via email to