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

Enable incremental rebuild of Materialized views with insert only source tables

    XMLWordPrintableJSON

Details

    Description

      create table t1(a int, b int, c int) stored as parquet TBLPROPERTIES ('transactional'='true', 'transactional_properties'='insert_only');
      
      create materialized view mat1 stored as orc TBLPROPERTIES ('transactional'='true') as
      select a, b, c from t1 where a > 10;
      

      Currently materialized view mat1 can not be rebuilt incrementally because it has an insert only source table (t1). Such tables does not have ROW_ID.write_id which is required to identify newly inserted records since the last rebuild.
      HIVE-25406 adds the ability to query write_id.

      Attachments

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              kkasa Krisztian Kasa
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 3h 10m
                  3h 10m