diff --git a/src/sql/workbench/contrib/notebook/browser/outputs/gridOutput.component.ts b/src/sql/workbench/contrib/notebook/browser/outputs/gridOutput.component.ts index bdef717af5..41da62a7fb 100644 --- a/src/sql/workbench/contrib/notebook/browser/outputs/gridOutput.component.ts +++ b/src/sql/workbench/contrib/notebook/browser/outputs/gridOutput.component.ts @@ -295,6 +295,11 @@ class DataResourceTable extends GridTableBase { public convertData(set: ResultSetSummary): Promise { return this._gridDataProvider.convertAllData(set); } + + public updateResult(resultSet: ResultSetSummary): void { + super.updateResult(resultSet); + this._gridDataProvider.updateResultSet(resultSet); + } } export class DataResourceDataProvider implements IGridDataProvider { @@ -372,6 +377,10 @@ export class DataResourceDataProvider implements IGridDataProvider { }); } + public updateResultSet(resultSet: ResultSetSummary): void { + this._resultSet = resultSet; + } + public async convertAllData(result: ResultSetSummary): Promise { // Querying 100 rows at a time. Querying large amount of rows will be slow and // affect table rendering since each time the user scrolls, getRowData is called.