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

Improve the clarity of caching semantics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 1.2.0
    • SQL
    • None

    Description

      Right now there are a bunch of different ways to cache tables in Spark SQL. For example:

      • tweets.cache()
      • sql("SELECT * FROM tweets").cache()
      • table("tweets").cache()
      • tweets.cache().registerTempTable(tweets)
      • sql("CACHE TABLE tweets")
      • cacheTable("tweets")

      Each of the above commands has subtly different semantics, leading to a very confusing user experience. Ideally, we would stop doing caching based on simple tables names and instead have a phase of optimization that does intelligent matching of query plans with available cached data.

      Attachments

        Issue Links

          Activity

            People

              marmbrus Michael Armbrust
              marmbrus Michael Armbrust
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: