Web console: Implemented explain of selected part of SQL query.
@@ -1564,8 +1564,8 @@ export class NotebookCtrl {
if (!$scope.queryAvailable(paragraph))
return;
- Notebook.save($scope.notebook)
- .catch(Messages.showError);
+ if (!paragraph.partialQuery)
+ Notebook.save($scope.notebook).catch(Messages.showError);
_cancelRefresh(paragraph);
@@ -1577,7 +1577,7 @@ export class NotebookCtrl {
const args = paragraph.queryArgs = {
type: 'EXPLAIN',
cacheName: $scope.cacheNameForSql(paragraph),
- query: 'EXPLAIN ' + paragraph.query,
+ query: 'EXPLAIN ' + (paragraph.partialQuery || paragraph.query),
pageSize: paragraph.pageSize
};
