carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] incubator-carbondata pull request #653: [CARBONDATA-769] Added codegen suppo...
Date Tue, 14 Mar 2017 14:25:14 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/653#discussion_r105921333
  
    --- 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 =>
    --- End diff --
    
    change `map(x` to `map { x`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message