Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12373

Interner should return identical map or list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Query Processor
    • None

    Description

      Currently, HiveStringUtils.intern(map/list) returns new instance of map or list. But it would break some usage style of code something like below (it's spark code in HiveMetastoreCatalog)

      val serdeParameters = new java.util.HashMap[String, String]()
      serdeInfo.setParameters(serdeParameters)
      // these properties will be gone
      table.serdeProperties.foreach { case (k, v) => serdeParameters.put(k, v) }
      p.storage.serdeProperties.foreach { case (k, v) => serdeParameters.put(k, v) }
      

      Luckily for spark, interner was not applied to released version of hive (1.2.0, 1.2.1) by mistake. But it would make problem in someday.

      Attachments

        1. HIVE-12373.1.patch.txt
          5 kB
          Navis Ryu

        Issue Links

          Activity

            People

              navis Navis Ryu
              navis Navis Ryu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: