You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/01/08 17:19:10 UTC

[GitHub] [spark] dongjoon-hyun commented on pull request #31081: [SPARK-34039][SQL] ReplaceTable should invalidate cache

dongjoon-hyun commented on pull request #31081:
URL: https://github.com/apache/spark/pull/31081#issuecomment-756890129


   @sunchao . I tested this case with Apache Spark 3.1.0 RC1 with Iceberg 0.10. This is a correctness issue. How do you think about that? If you agree, please make a backport. (Also, cc @HyukjinKwon )
   ```
   {code}
   spark-sql> SELECT * FROM local.db.table;
   4	5
   
   spark-sql> CACHE TABLE v AS SELECT * FROM local.db.table;
   
   spark-sql> SELECT * FROM v;
   4	5
   
   spark-sql> REPLACE TABLE local.db.table AS SELECT 100 id, '100' string;
   
   spark-sql> SELECT * FROM v;
   4	5
   
   spark-sql> SELECT * FROM local.db.table;
   100	100
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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