|
@@ -19,7 +19,7 @@ import Executable, { ExecutableRaw } from 'apps/notebook2/execution/executable';
|
|
|
import Executor from 'apps/notebook2/execution/executor';
|
|
import Executor from 'apps/notebook2/execution/executor';
|
|
|
import { ParsedSqlStatement } from 'parse/sqlStatementsParser';
|
|
import { ParsedSqlStatement } from 'parse/sqlStatementsParser';
|
|
|
|
|
|
|
|
-const BATCHABLE_STATEMENT_TYPES = /ALTER|CREATE|DELETE|DROP|GRANT|INSERT|INVALIDATE|LOAD|SET|TRUNCATE|UPDATE|UPSERT|USE/i;
|
|
|
|
|
|
|
+const BATCHABLE_STATEMENT_TYPES = /ALTER|WITH|REFRESH|CREATE|DELETE|DROP|GRANT|INSERT|INVALIDATE|LOAD|SET|TRUNCATE|UPDATE|UPSERT|USE/i;
|
|
|
|
|
|
|
|
const SELECT_END_REGEX = /([^;]*)([;]?[^;]*)/;
|
|
const SELECT_END_REGEX = /([^;]*)([;]?[^;]*)/;
|
|
|
const ERROR_REGEX = /line ([0-9]+)(:([0-9]+))?/i;
|
|
const ERROR_REGEX = /line ([0-9]+)(:([0-9]+))?/i;
|