-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed as not planned
Labels
Description
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.
iceberg/core/src/test/java/org/apache/iceberg/util/TestSnapshotUtil.java
Lines 117 to 125 in 62eb74c
| @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