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

Collect_set Aggregate does uneccesary check for value.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.1
    • 0.10.0
    • None
    • None

    Description

      Sets already de-duplicate for free no need for existence check.

           private void putIntoSet(Object p, MkArrayAggregationBuffer myagg) {
            if (myagg.container.contains(p))
              return;
             Object pCopy = ObjectInspectorUtils.copyToStandardObject(p,
                 this.inputOI);
             myagg.container.add(pCopy);
      

      Attachments

        1. HIVE-3048.patch.1.txt
          0.6 kB
          Edward Capriolo

        Activity

          People

            appodictic Edward Capriolo
            appodictic Edward Capriolo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: