Skip to content

Commit

Permalink
fix nightly err; fixup snapshot partial table end-result
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauernfeind committed Oct 16, 2023
1 parent 02d8c36 commit 78acfbd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import io.deephaven.engine.context.ExecutionContext;
import io.deephaven.engine.liveness.ReferenceCountedLivenessNode;
import io.deephaven.engine.rowset.RowSet;
import io.deephaven.engine.rowset.WritableRowSet;
import io.deephaven.engine.table.TableDefinition;
import io.deephaven.engine.table.impl.util.BarrageMessage;
import io.deephaven.engine.updategraph.UpdateGraph;
Expand Down Expand Up @@ -476,6 +477,15 @@ public boolean viewportChanged(
// @formatter:on

if (isComplete) {
// remove all unpopulated rows from viewport snapshots
if (isSnapshot && serverViewport != null) {
// noinspection resource
WritableRowSet currentRowSet = resultTable.getRowSet().writableCast();
try (final RowSet populated = currentRowSet.subSetForPositions(serverViewport, serverReverseViewport)) {
currentRowSet.retain(populated);
}
}

signalCompletion();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ private class RemoteClient {
final BarrageUtil.ConvertedArrowSchema schema = BarrageUtil.convertArrowSchema(flatbufSchema);
this.barrageTable = BarrageTable.make(updateSourceCombiner, ExecutionContext.getContext().getUpdateGraph(),
null, schema.tableDef, schema.attributes, null);
this.barrageTable.addSourceToRegistrar();

final BarrageSubscriptionOptions options = BarrageSubscriptionOptions.builder()
.useDeephavenNulls(useDeephavenNulls)
Expand Down

0 comments on commit 78acfbd

Please sign in to comment.