From 56669db6b6c7bb065231037b28dca614698af7d6 Mon Sep 17 00:00:00 2001 From: Lucy Zhang Date: Fri, 18 Sep 2020 18:36:40 -0700 Subject: [PATCH] update resultSet in data provider (#12478) (#12486) --- .../notebook/browser/outputs/gridOutput.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) 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.