Skip to content

Support Iceberg Changelog Scan #17154

@agnes-xinyi-lu

Description

@agnes-xinyi-lu

Implement trino support for query changelog of iceberg tables. like SparkChangelogTable with Iceberg Changelog Schema.

To get all the inserts/deletes for a table:

SELECT * FROM db."tableName$changes"
ORDER BY _change_ordinal ASC

If we could agree on the syntax to specify start/end snapshot id for range query #17079 , then we could query changes for a range like this:

SELECT * FROM db."tableName$changes" FOR VERSION FROM startSnapshotId TO endSnapshotId

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions