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

Do not allow hive to iceberg migration if source table contains CHAR or VARCHAR columns

    XMLWordPrintableJSON

Details

    Description

      "alter table" statements can be used for generating iceberg metadata information (i.e for converting external tables  -> iceberg tables).

      As part of this process, it also converts certain datatypes to iceberg compatible types (e.g char -> string). "iceberg.mr.schema.auto.conversion" enables this conversion.

      This could cause certain issues at runtime. Here is an example

      Before conversion:
      ==================
      -- external table
      select count(*) from customer_demographics where cd_gender = 'F' and cd_marital_status = 'U' and cd_education_status = '2 yr Degree';
      
      27440
      
      after conversion:
      =================
      -- iceberg table
      select count(*) from customer_demographics where cd_gender = 'F' and cd_marital_status = 'U' and cd_education_status = '2 yr Degree';
      
      0
      
      select count(*) from customer_demographics where cd_gender = 'F' and cd_marital_status = 'U' and trim(cd_education_status) = '2 yr Degree';
      
      27440
       

       

      Attachments

        Issue Links

          Activity

            People

              lpinter László Pintér
              rajesh.balamohan Rajesh Balamohan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m