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

Collect_set Aggregate does uneccesary check for value.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.1
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: