Sfoglia il codice sorgente

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

Romain Rigaux 8 anni fa
parent
commit
ae00d1d176
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)