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

False negative in QueryTest.checkAnswer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.2, 1.1.1, 1.2.2, 1.3.1, 1.4.1, 1.5.0
    • 2.0.0
    • SQL, Tests
    • None

    Description

      checkAnswer doesn't handle Map[K, V] properly. For example:

      scala> Map(1 -> 2, 2 -> 1).toString
      res0: String = Map(1 -> 2, 2 -> 1)
      
      scala> Map(2 -> 1, 1 -> 2).toString
      res1: String = Map(2 -> 1, 1 -> 2)
      

      We can't rely on toString to compare Map[K, V] instances.

      Need to update checkAnswer to special case Map[K, V].

      Attachments

        Activity

          People

            dongjoon Dongjoon Hyun
            lian cheng Cheng Lian
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: