Browse Source

HUE-6025 [metadata] Support fetching view object in search_entity

Romain Rigaux 8 years ago
parent
commit
ae00d1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/metadata/src/metadata/navigator_api.py

+ 1 - 1
desktop/libs/metadata/src/metadata/navigator_api.py

@@ -331,7 +331,7 @@ def find_entity(request):
     if not name:
       raise MetadataApiException('get_database requires name param')
     response['entity'] = api.get_database(name)
-  elif entity_type.lower() == 'table':
+  elif entity_type.lower() == 'table' or entity_type.lower() == 'view':
     if not database or not name:
       raise MetadataApiException('get_table requires database and name param')
     response['entity'] = api.get_table(database, name)