Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27248

REFRESH TABLE should recreate cache with same cache name and storage level

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • SQL
    • None

    Description

      If we refresh a cached table, the table cache will be first uncached and then recache (lazily). Currently, the logic is embedded in CatalogImpl.refreshTable method.

      The current implementation does not preserve the cache name and storage level. As a result, cache name and cache level could be changed after a REFERSH. IMHO, it is not what a user would expect.

      I would like to fix this behavior by first save the cache name and storage level for recaching the table.

      Attachments

        Issue Links

          Activity

            People

              william1104 William Wong
              william1104 William Wong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: