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

A method to extrapolate columnStats for partitions of a table

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.14.0
    • Statistics

    Description

      In a PARTITIONED table, there are many partitions. For example,

      create table if not exists loc_orc (
      state string,
      locid int,
      zip bigint
      ) partitioned by(year string) stored as orc;

      We assume there are 4 partitions, partition(year='2000'), partition(year='2001'), partition(year='2002') and partition(year='2003').

      We can use the following command to compute statistics for columns state,locid of partition(year='2001')

      analyze table loc_orc partition(year='2001') compute statistics for columns state,locid;

      We need to know the “aggregated” column status for the whole table loc_orc. However, we may not have the column status for some partitions, e.g., partition(year='2002') and also we may not have the column status for some columns, e.g., zip bigint for partition(year='2001')

      We propose a method to extrapolate the missing column status for the partitions.

      Attachments

        1. HIVE-7654.9.patch
          186 kB
          Pengcheng Xiong
        2. HIVE-7654.8.patch
          176 kB
          Pengcheng Xiong
        3. HIVE-7654.7.patch
          176 kB
          Pengcheng Xiong
        4. HIVE-7654.6.patch
          176 kB
          Pengcheng Xiong
        5. HIVE-7654.4.patch
          172 kB
          Pengcheng Xiong
        6. HIVE-7654.1.patch
          120 kB
          Pengcheng Xiong
        7. HIVE-7654.0.patch
          18 kB
          Pengcheng Xiong
        8. Extrapolate the Column Status.docx
          131 kB
          Pengcheng Xiong

        Activity

          People

            pxiong Pengcheng Xiong
            pxiong Pengcheng Xiong
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: