Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11160 Auto-gather column stats
  3. HIVE-18141

Fix StatsUtils.combineRange to combine intervals

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Statistics
    • None

    Description

      the current combinedRange implementation in its current form "combines" only ranges which contain eachother

      but the comments suggests that the intention was to capture the case when the 2 intervals are overlap; can be checked with the following testcase:

        @Test
        public void test11() {
          Range r1 = new Range(0, 1);
          Range r2 = new Range(1, 11);
          Range r3 = StatsUtils.combineRange(r1, r2);
          assertNotNull(r3);
        }
      

      Attachments

        1. HIVE-18141.01.patch
          3 kB
          Zoltan Haindrich
        2. HIVE-18141.02.patch
          4 kB
          Zoltan Haindrich

        Activity

          People

            kgyrtkirk Zoltan Haindrich
            kgyrtkirk Zoltan Haindrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: