Skip to content

Iceberg $changelog read fails on table with only one snapshot version. #23071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yingsu00 opened this issue Jun 25, 2024 · 0 comments · May be fixed by #24966
Open

Iceberg $changelog read fails on table with only one snapshot version. #23071

yingsu00 opened this issue Jun 25, 2024 · 0 comments · May be fixed by #24966
Assignees
Labels
bug from:IBM PR from IBM iceberg Apache Iceberg related

Comments

@yingsu00
Copy link
Contributor

presto:tpch> select * from "orders$changelog";
Query 20240624_220710_00035_3in55 failed: Starting snapshot (exclusive) 2000890339086333075 is not a parent ancestor of end snapshot 2000890339086333075
java.lang.IllegalArgumentException: Starting snapshot (exclusive) 2000890339086333075 is not a parent ancestor of end snapshot 2000890339086333075
	at org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkArgument(Preconditions.java:428)
	at org.apache.iceberg.BaseIncrementalScan.fromSnapshotIdExclusive(BaseIncrementalScan.java:179)
	at org.apache.iceberg.BaseIncrementalScan.planFiles(BaseIncrementalScan.java:104)
	at com.facebook.presto.iceberg.changelog.ChangelogSplitSource.<init>(ChangelogSplitSource.java:80)
	at com.facebook.presto.iceberg.IcebergSplitManager.getSplits(IcebergSplitManager.java:94)
	at com.facebook.presto.spi.connector.classloader.ClassLoaderSafeConnectorSplitManager.getSplits(ClassLoaderSafeConnectorSplitManager.java:41)
	at com.facebook.presto.split.SplitManager.getSplits(SplitManager.java:89)
	at com.facebook.presto.split.CloseableSplitSourceProvider.getSplits(CloseableSplitSourceProvider.java:52)
	at com.facebook.presto.sql.planner.SplitSourceFactory$Visitor.lambda$visitTableScan$0(SplitSourceFactory.java:156)
	at com.facebook.presto.sql.planner.LazySplitSource.getDelegate(LazySplitSource.java:96)
	at com.facebook.presto.sql.planner.LazySplitSource.getConnectorId(LazySplitSource.java:48)
	at com.facebook.presto.execution.scheduler.SectionExecutionFactory.createStageScheduler(SectionExecutionFactory.java:292)
	at com.facebook.presto.execution.scheduler.SectionExecutionFactory.createStreamingLinkedStageExecutions(SectionExecutionFactory.java:253)
	at com.facebook.presto.execution.scheduler.SectionExecutionFactory.createStreamingLinkedStageExecutions(SectionExecutionFactory.java:231)
	at com.facebook.presto.execution.scheduler.SectionExecutionFactory.createSectionExecutions(SectionExecutionFactory.java:177)
	at com.facebook.presto.execution.scheduler.SqlQueryScheduler.createStageExecutions(SqlQueryScheduler.java:354)
	at com.facebook.presto.execution.scheduler.SqlQueryScheduler.<init>(SqlQueryScheduler.java:243)
	at com.facebook.presto.execution.scheduler.SqlQueryScheduler.createSqlQueryScheduler(SqlQueryScheduler.java:172)
	at com.facebook.presto.execution.SqlQueryExecution.planDistribution(SqlQueryExecution.java:627)
	at com.facebook.presto.execution.SqlQueryExecution.start(SqlQueryExecution.java:469)
	at com.facebook.presto.$gen.Presto_null__testversion____20240624_205519_5.run(Unknown Source)
	at com.facebook.presto.execution.SqlQueryManager.createQuery(SqlQueryManager.java:319)
	at com.facebook.presto.dispatcher.LocalDispatchQuery.lambda$startExecution$8(LocalDispatchQuery.java:211)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug from:IBM PR from IBM iceberg Apache Iceberg related
Projects
Status: 🆕 Unprioritized
Status: 🆕 Unprioritized
Development

Successfully merging a pull request may close this issue.

3 participants