Skip to content

Commit

Permalink
refactor: Deleted legacy snapshot logic (#5617)
Browse files Browse the repository at this point in the history
  • Loading branch information
malhotrashivam authored Nov 8, 2024
1 parent 69bb3a4 commit 5eabdce
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 783 deletions.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import io.deephaven.engine.table.*;
import io.deephaven.engine.table.impl.indexer.DataIndexer;
import io.deephaven.engine.table.impl.remote.ConstructSnapshot;
import io.deephaven.engine.table.impl.remote.InitialSnapshotTable;
import io.deephaven.engine.table.impl.select.*;
import io.deephaven.engine.table.impl.select.MatchFilter.CaseSensitivity;
import io.deephaven.engine.table.impl.select.MatchFilter.MatchType;
Expand Down Expand Up @@ -70,6 +69,7 @@
import java.util.stream.LongStream;

import static io.deephaven.api.agg.Aggregation.*;
import static io.deephaven.engine.table.impl.SnapshotTestUtils.verifySnapshotBarrageMessage;
import static io.deephaven.engine.testutil.TstUtils.*;
import static io.deephaven.engine.util.TableTools.*;
import static org.junit.Assert.assertArrayEquals;
Expand Down Expand Up @@ -3180,10 +3180,10 @@ public void testUngroupJoined_IDS6311() {
assertNull(ungrouped.getColumnSource("CCol").getPrev(firstKey));
assertEquals('b', ungrouped.getColumnSource("CCol").getPrev(secondKey));

// This tests the NPE condition in the ungrouped column sources
final Table snappy = InitialSnapshotTable.setupInitialSnapshotTable(ungrouped,
ConstructSnapshot.constructInitialSnapshot(this, (QueryTable) ungrouped));
assertTableEquals(expected, snappy);
try (final BarrageMessage snap =
ConstructSnapshot.constructBackplaneSnapshot(this, (BaseTable<?>) ungrouped)) {
verifySnapshotBarrageMessage(snap, expected);
}
}

private void testMemoize(QueryTable source, UnaryOperator<Table> op) {
Expand Down
Loading

0 comments on commit 5eabdce

Please sign in to comment.