Browse Source

HUE-8330 [importer] Do not disable submit when input is Kafka and output Kudu and table already exists

Romain Rigaux 7 năm trước cách đây
mục cha
commit
e04e5e8
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 5 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -2479,7 +2479,11 @@ ${ assist.assistPanel() }
         if (self.destination.outputFormat() === 'database' && self.source.inputFormat() === 'rdbms') {
           isTargetAlreadyExisting = self.destination.isTargetExisting();
         } else {
-          isTargetAlreadyExisting = !self.destination.isTargetExisting() || self.destination.outputFormat() === 'index';
+          isTargetAlreadyExisting = !self.destination.isTargetExisting()
+            || self.destination.outputFormat() === 'index'
+            ## Authorize submission but should check if schema is compatible
+            || (self.source.inputFormat() === 'stream' && self.destination.outputFormat() === 'table' && self.destination.tableFormat() === 'kudu')
+          ;
         }
         var isValidTable = self.destination.outputFormat() !== 'table' || (
           self.destination.tableFormat() !== 'kudu' || (