You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by yhuai <gi...@git.apache.org> on 2015/04/20 02:49:09 UTC

[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

GitHub user yhuai opened a pull request:

    https://github.com/apache/spark/pull/5583

    [SPARK-6969][SQL] Refresh the cached table when REFRESH TABLE is used

    https://issues.apache.org/jira/browse/SPARK-6969

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yhuai/spark refreshTableRefreshDataCache

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5583.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5583
    
----
commit 367df922f7dfbef08083e1fac1dacefdf4e953c1
Author: Yin Huai <yh...@databricks.com>
Date:   2015-04-20T00:36:32Z

    Recache data in the command of REFRESH TABLE.

commit 92b249867f7975a625ffd87a572e123b5babb8d1
Author: Yin Huai <yh...@databricks.com>
Date:   2015-04-20T00:48:25Z

    Minor updates.

----


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5583#issuecomment-94611451
  
      [Test build #30618 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/30618/consoleFull) for   PR 5583 at commit [`1e5142b`](https://github.com/apache/spark/commit/1e5142bac51b2155b6b74f2422d6f752dd44855e).


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/5583#issuecomment-94953370
  
    Thanks, merged to master.


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5583#issuecomment-94343624
  
      [Test build #30570 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/30570/consoleFull) for   PR 5583 at commit [`92b2498`](https://github.com/apache/spark/commit/92b249867f7975a625ffd87a572e123b5babb8d1).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.
     * This patch does not change any dependencies.


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5583#issuecomment-94630682
  
      [Test build #30618 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/30618/consoleFull) for   PR 5583 at commit [`1e5142b`](https://github.com/apache/spark/commit/1e5142bac51b2155b6b74f2422d6f752dd44855e).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.
     * This patch does not change any dependencies.


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5583#discussion_r28740186
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/sources/ddl.scala ---
    @@ -347,7 +347,23 @@ private[sql] case class RefreshTable(databaseName: String, tableName: String)
       extends RunnableCommand {
     
       override def run(sqlContext: SQLContext): Seq[Row] = {
    +    // Refresh the given table's metadata first.
         sqlContext.catalog.refreshTable(databaseName, tableName)
    +
    +    // If this table is cached as a InMemoryColumnarRelation, drop the original
    +    // cached version and make the new version cached lazily.
    +    val logicalPlan = sqlContext.catalog.lookupRelation(Seq(databaseName, tableName))
    --- End diff --
    
    Leave a TODO here to clean this up when uncacheTable supports databases correctly.


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/5583


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/5583#issuecomment-94343647
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30570/
    Test PASSed.


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5583#issuecomment-94330093
  
      [Test build #30570 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/30570/consoleFull) for   PR 5583 at commit [`92b2498`](https://github.com/apache/spark/commit/92b249867f7975a625ffd87a572e123b5babb8d1).


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


[GitHub] spark pull request: [SPARK-6969][SQL] Refresh the cached table whe...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/5583#issuecomment-94630685
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/30618/
    Test PASSed.


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