Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 3.3.0, Impala 3.4.0
-
None
-
ghx-label-7
Description
It's expected that unloaded views are returned as tables in legacy catalog mode, because they are represented as IncompleteTables which have no difference with normal tables. When the view is loaded (i.e. used once), Impala should be able to get its type and return it correctly for GET_TABLES request.
However, in LocalCatalog mode, the types for loaded views are always TABLE.
For reproducing the issue, there are no easy way to trigger GET_TABLES in command lines. The most easier way may be using HUE:
- Make sure coordinators are in LocalCatalog mode.
- Create a view and run a query on it to make sure it's loaded.
- In HUE's Impala editor, the view is shown as table, no matter how many times we refresh the table list:
- In HUE's Hive editor, the view is shown with a view logo:
Attachments
Attachments
Issue Links
- is related to
-
IMPALA-7127 Fetch-on-demand metadata for the impalad-side catalog
- Reopened
-
IMPALA-7587 Follow up for IMPALA-2636: consider fixing GetTables() for tables with not loaded metadata
- Open
- relates to
-
IMPALA-9670 Fix unloaded views are shown as tables for GET_TABLES requests
- Resolved