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

Make materializations invalidation cache work with multiple active remote metastores

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0-alpha-1
    • Materialized views
    • None

    Description

      The main points:

      • Only MVs that use transactional tables can have a time window value of 0. Those are the only MVs that can be guaranteed to not be outdated when a query is executed.
      • For MVs that cannot be outdated, comparison is based on valid write id lists.
      • For MVs that can be outdated:
        • The window for valid outdated MVs can be specified in intervals of 1 minute.
        • A materialized view is outdated if it was built before that time window and any source table has been modified since.

      A time window of -1 means to always use the materialized view for rewriting without any checks concerning its validity. If a materialized view uses an external table, the only way to trigger the rewriting would be to set the property to -1, since currently we do not capture for validation purposes whether the external source tables have been modified since the MV was created or not.

      Attachments

        1. HIVE-20006.patch
          1.02 MB
          jcamachorodriguez
        2. HIVE-20006.07.patch
          1.02 MB
          jcamachorodriguez
        3. HIVE-20006.06.patch
          1.02 MB
          jcamachorodriguez
        4. HIVE-20006.05.patch
          1.02 MB
          jcamachorodriguez
        5. HIVE-20006.04.patch
          1.02 MB
          jcamachorodriguez
        6. HIVE-20006.03.patch
          1.02 MB
          jcamachorodriguez
        7. HIVE-20006.02.patch
          1.02 MB
          jcamachorodriguez
        8. HIVE-20006.01.patch
          1.02 MB
          jcamachorodriguez
        9. HIVE-19027.04.patch
          1.02 MB
          jcamachorodriguez
        10. HIVE-19027.03.patch
          1.02 MB
          jcamachorodriguez
        11. HIVE-19027.02.patch
          1007 kB
          jcamachorodriguez
        12. HIVE-19027.01.patch
          1.08 MB
          jcamachorodriguez

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: