Skip to content

Commit

Permalink
Bugfix: reuse original rowset if no flattening required
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Nov 2, 2023
1 parent 3e642ab commit ecdf5eb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,9 @@ this, mode, columns, rowSet, getModifiedColumnSetForUpdates(), publishTheseSourc
}
}

final TrackingRowSet resultRowSet =
analyzer.flattenedResult() ? RowSetFactory.flat(rowSet.size()).toTracking() : rowSet;
final TrackingRowSet resultRowSet = analyzer.flattenedResult() && !rowSet.isFlat()
? RowSetFactory.flat(rowSet.size()).toTracking()
: rowSet;
resultTable = new QueryTable(resultRowSet, analyzerWrapper.getPublishedColumnResources());
if (liveResultCapture != null) {
analyzer.startTrackingPrev();
Expand Down

0 comments on commit ecdf5eb

Please sign in to comment.