Skip to content

Core: currentAncestors also returns the current snapshot #6930

@Fokko

Description

@Fokko

Feature Request / Improvement

I noticed that the currentAncestors also returns the current snapshot. For me, an ancestor implies, only the parents and their parents of the current snapshot of a table.

@Test
public void currentAncestors() {
Iterable<Snapshot> snapshots = SnapshotUtil.currentAncestors(table);
expectedSnapshots(new long[] {snapshotDId, snapshotBId, snapshotAId}, snapshots);
List<Long> snapshotList = SnapshotUtil.currentAncestorIds(table);
Assert.assertArrayEquals(
new Long[] {snapshotDId, snapshotBId, snapshotAId}, snapshotList.toArray(new Long[0]));
}

I noticed this when porting this logic to Python. I'm opening this ticket to see if we're okay with that, we want to change this?

Query engine

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions