Эх сурвалжийг харах

HUE-9000 [editor] Handle sync result in editor v2

Johan Ahlen 6 жил өмнө
parent
commit
61fbe4955b

+ 3 - 0
desktop/core/src/desktop/js/apps/notebook2/execution/executable.js

@@ -195,6 +195,9 @@ export default class Executable {
       if (this.handle.has_result_set && this.handle.sync) {
         this.result = new ExecutionResult(this);
         if (this.handle.sync) {
+          if (this.handle.result) {
+            this.result.handleResultResponse(this.handle.result);
+          }
           this.result.fetchRows();
         }
       }

+ 4 - 0
desktop/core/src/desktop/js/apps/notebook2/execution/executionResult.js

@@ -92,6 +92,10 @@ export default class ExecutionResult {
       startOver: options && options.startOver
     });
 
+    this.handleResultResponse(resultResponse);
+  }
+
+  handleResultResponse(resultResponse) {
     const initialIndex = this.rows.length;
     resultResponse.data.forEach((row, index) => {
       row.unshift(initialIndex + index + 1);