Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33507 Improve and fix cache behavior in v1 and v2
  3. SPARK-33290

REFRESH TABLE should invalidate cache even though the table itself may not be cached

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.7, 3.0.1, 3.1.0
    • 2.4.8, 3.0.2, 3.1.0
    • SQL

    Description

      For the following example:

      CREATE TABLE t ...;
      CREATE VIEW t1 AS SELECT * FROM t;
      REFRESH TABLE t
      

      If t is cached, t1 will be invalidated. However if t is not cached as above, the REFRESH command won't invalidate view t1. This could lead to incorrect result if the view is used later.

      Attachments

        Activity

          People

            csun Chao Sun
            csun Chao Sun
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: