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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.7, 3.0.1, 3.1.0
    • Fix Version/s: 2.4.8, 3.0.2, 3.1.0
    • Component/s: SQL
    • Labels:

      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

            • Assignee:
              csun Chao Sun
              Reporter:
              csun Chao Sun
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: