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

Cache Manager: Hint should be ignored in plan matching

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.1, 2.2.0
    • 2.2.0
    • SQL
    • None

    Description

      In Cache manager, the plan matching should ignore Hint.

            val df1 = spark.range(10).join(broadcast(spark.range(10)))
            df1.cache()
            spark.range(10).join(spark.range(10)).explain()
      

      The output plan of the above query shows that the second query is not using the cached data of the first query.

      BroadcastNestedLoopJoin BuildRight, Inner
      :- *Range (0, 10, step=1, splits=2)
      +- BroadcastExchange IdentityBroadcastMode
         +- *Range (0, 10, step=1, splits=2)
      

      Attachments

        Activity

          People

            smilegator Xiao Li
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: