Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • SQL
    • None

    Description

      We should be able to resolve a nested view. The main advantage is that if you update an underlying view, the current view also gets updated.
      The new approach should be compatible with older versions of SPARK/HIVE, that means:
      1. The new approach should be able to resolve the views that created by older versions of SPARK/HIVE;
      2. The new approach should be able to resolve the views that are currently supported by SPARK SQL.

      The new approach mainly brings in the following changes:
      1. Add a new operator called `View` to keep track of the CatalogTable that describes the view, and the output attributes as well as the child of the view;
      2. Update the `ResolveRelations` rule to resolve the relations and views, note that a nested view should be resolved correctly;
      3. Add `AnalysisContext` to enable us to still support a view created with CTE/Windows query.

      Attachments

        Issue Links

          Activity

            People

              jiangxb1987 Xingbo Jiang
              jiangxb1987 Xingbo Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: