spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liancheng <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-9689][SQL]Fix bug of not invalidate the...
Date Wed, 19 Aug 2015 16:02:15 GMT
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8023#discussion_r37432464
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/columnar/InMemoryColumnarTableScan.scala
---
    @@ -183,6 +183,16 @@ private[sql] case class InMemoryRelation(
           batchStats).asInstanceOf[this.type]
       }
     
    +  private[sql] def withChild(newChild: SparkPlan): this.type = {
    +    new InMemoryRelation(
    +      output.map(_.newInstance()),
    +      useCompression,
    +      batchSize,
    +      storageLevel,
    +      newChild,
    +      tableName)().asInstanceOf[this.type]
    +  }
    --- End diff --
    
    This method is equivalent to `this.copy(child = newChild)()` since `InMemoryRelation`
is a case class.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Mime
View raw message