Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5025

Tool to clean up orphan views

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.15.0, 5.1.0, 4.14.2
    • None
    • None

    Description

      A view without its base table is an orphan view. Since views are virtual tables and their data is stored in their base tables, they are useless when they become orphan. A base table can have child views, grandchild views and so on. Due to some reasons/bugs, when a base table was dropped, its views were not not properly cleaned up in the past. For example, the drop table code did not support cleaning up grandchild views. This has been recently fixed by PHOENIX-4764. Although PHOENIX-4764 prevents new orphan views due to table drop operations, it does not clean up existing orphan views. It is also believed that when the system catalog table was split due to a bug in the past, it also contributed to creating orphan views as Phoenix did not support splittable system catalog. Therefore, Phoenix needs a tool to clean up orphan views.

      Attachments

        1. PHOENIX-5025.master.patch
          65 kB
          Kadir OZDEMIR
        2. PHOENIX-5025.master.0001.patch
          65 kB
          Kadir OZDEMIR
        3. PHOENIX-5025.master.0002.patch
          6 kB
          Kadir OZDEMIR

        Activity

          People

            kozdemir Kadir OZDEMIR
            kozdemir Kadir OZDEMIR
            Votes:
            0 Vote for this issue
            Watchers:
            9 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 - 10m
                10m