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

Populate more accurate rawDataSize for parquet format

Log workAgile BoardRank to TopRank to BottomVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 4.0.0
    • Component/s: File Formats
    • Labels:
      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

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment