Browse Source

HUE-8330 [importer] Do no error on single cluster submission

Romain Rigaux 7 years ago
parent
commit
4760f7bf9a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      desktop/libs/indexer/src/indexer/indexers/sql.py

+ 2 - 2
desktop/libs/indexer/src/indexer/indexers/sql.py

@@ -49,7 +49,7 @@ class SQLIndexer(object):
     final_table_name = table_name
     final_table_name = table_name
 
 
     table_format = destination['tableFormat']
     table_format = destination['tableFormat']
-    source_type = source['apiHelperType']
+    source_type = source['sourceType']
 
 
     columns = destination['columns']
     columns = destination['columns']
     partition_columns = destination['partitionColumns']
     partition_columns = destination['partitionColumns']
@@ -199,7 +199,7 @@ class SQLIndexer(object):
           'table_name': table_name
           'table_name': table_name
       }
       }
 
 
-    editor_type = 'impala' if table_format == 'kudu' else destination['apiHelperType']
+    editor_type = 'impala' if table_format == 'kudu' else destination['sourceType']
 
 
     on_success_url = reverse('metastore:describe_table', kwargs={'database': database, 'table': table_name})
     on_success_url = reverse('metastore:describe_table', kwargs={'database': database, 'table': table_name})