瀏覽代碼

HUE-9025 [editor] Fix multi query statement with invalidate metadata

Chris Conner 6 年之前
父節點
當前提交
319a29bbbf

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/snippet.js

@@ -2351,7 +2351,7 @@ class Snippet {
     self.checkDdlNotification = function() {
       if (
         self.lastExecutedStatement() &&
-        /ALTER|CREATE|DELETE|DROP|GRANT|INSERT|LOAD|SET|TRUNCATE|UPDATE|UPSERT|USE/i.test(
+        /ALTER|CREATE|DELETE|DROP|GRANT|INSERT|INVALIDATE|LOAD|SET|TRUNCATE|UPDATE|UPSERT|USE/i.test(
           self.lastExecutedStatement().firstToken
         )
       ) {

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/snippet.js

@@ -1201,7 +1201,7 @@ export default class Snippet {
   checkDdlNotification() {
     if (
       this.lastExecutedStatement() &&
-      /ALTER|CREATE|DELETE|DROP|GRANT|INSERT|LOAD|SET|TRUNCATE|UPDATE|UPSERT|USE/i.test(
+      /ALTER|CREATE|DELETE|DROP|GRANT|INSERT|INVALIDATE|LOAD|SET|TRUNCATE|UPDATE|UPSERT|USE/i.test(
         this.lastExecutedStatement().firstToken
       )
     ) {