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

Populate more accurate rawDataSize for parquet format

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 4.0.0-alpha-1
    • File Formats
    • None

    Description

      Run the following queries and you will see the raw data for the table is 4 (that is the number of fields) incorrectly. We need to populate correct data size so data can be split properly.

      SET hive.stats.autogather=true;
      CREATE TABLE parquet_stats (id int,str string) STORED AS PARQUET;
      INSERT INTO parquet_stats values(0, 'this is string 0'), (1, 'string 1');
      DESC FORMATTED parquet_stats;
      
      Table Parameters:
      	COLUMN_STATS_ACCURATE	true
      	numFiles            	1
      	numRows             	2
      	rawDataSize         	4
      	totalSize           	373
      	transient_lastDdlTime	1530660523
      

      Attachments

        1. HIVE-20079.1.patch
          10 kB
          Aihua Xu
        2. HIVE-20079.2.patch
          570 kB
          Aihua Xu
        3. HIVE-20079.3.patch
          60 kB
          Antal Sinkovits
        4. HIVE-20079.4.patch
          60 kB
          Antal Sinkovits
        5. HIVE-20079.5.patch
          60 kB
          Antal Sinkovits
        6. HIVE-20079.6.patch
          60 kB
          Antal Sinkovits

        Issue Links

          Activity

            People

              aihuaxu Aihua Xu
              aihuaxu Aihua Xu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: