|
|
@@ -1634,12 +1634,11 @@ var EditorViewModel = (function() {
|
|
|
setTimeout(function () { // Delay until we get IMPALA-5555
|
|
|
self.fetchResultSize(10, _query_id);
|
|
|
}, 2000);
|
|
|
- } else { // Is DDL
|
|
|
-
|
|
|
+ self.checkDdlNotification(); // DDL CTAS with Impala
|
|
|
+ } else {
|
|
|
+ // Is DDL
|
|
|
if (self.lastExecutedStatement()) {
|
|
|
- if (/CREATE|DROP|ALTER/i.test(self.lastExecutedStatement().firstToken)) {
|
|
|
- self.ddlNotification(Math.random());
|
|
|
- }
|
|
|
+ self.checkDdlNotification();
|
|
|
} else {
|
|
|
self.ddlNotification(Math.random());
|
|
|
}
|
|
|
@@ -1682,6 +1681,12 @@ var EditorViewModel = (function() {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ self.checkDdlNotification = function() {
|
|
|
+ if (self.lastExecutedStatement() && /CREATE|DROP|ALTER/i.test(self.lastExecutedStatement().firstToken)) {
|
|
|
+ self.ddlNotification(Math.random());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
self.isCanceling = ko.observable(false);
|
|
|
|
|
|
self.cancel = function () {
|