Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.1
    • None
    • SQL
    • None

    Description

      Currently, the semantics for REFRESH TABLE t is not well defined for view (let's say view) that reference the table t:

      1. If view is cached, the behavior is not well-defined. Should Spark invalidate the cache (current behavior) or recache it?
      2. If view is a temporary view, currently refreshing t does not refresh view since it will just reuse the logical plan defined in the session catalog. This could lead query failures (although with a helpful error message) or to incorrect results depending on the refresh behavior.

      I think we should clear define and document the behavior here, so that users won't get confused.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: