Use Iceberg Metadata table's API for snapshot metadata table#12776
Use Iceberg Metadata table's API for snapshot metadata table#12776electrum merged 1 commit intotrinodb:masterfrom
Conversation
|
CI failure relates to this change. |
|
cc @alexjo2144 |
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/SnapshotsTable.java
Outdated
Show resolved
Hide resolved
yes, I see this query is failing, this seems to be not related to the |
alexjo2144
left a comment
There was a problem hiding this comment.
The test does look related, it reads from the Snapshots table here: https://github.com/trinodb/trino/blob/master/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergReadVersionedTable.java#L104
If you're sure though, just push an empty commit to trigger a rerun
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/SnapshotsTable.java
Outdated
Show resolved
Hide resolved
4354935 to
a271f6e
Compare
@alexjo2144 there was an issue with the |
a271f6e to
2cf559a
Compare
alexjo2144
left a comment
There was a problem hiding this comment.
Sorry for the delay on the review. I'm okay with this change, pending the two small comments.
I'm just not sure if this adds much value unless we're deriving the table schema from the Iceberg SnapshotsTable#schema
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/SnapshotsTable.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/SnapshotsTable.java
Outdated
Show resolved
Hide resolved
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Manish Malhotra.
|
30d170e to
6022663
Compare
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergUtil.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergUtil.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/SnapshotsTable.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/SnapshotsTable.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/SnapshotsTable.java
Outdated
Show resolved
Hide resolved
dcc6e01 to
0acce1f
Compare
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergUtil.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergUtil.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/SnapshotsTable.java
Outdated
Show resolved
Hide resolved
b61e331 to
6c21c36
Compare
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Manish Malhotra.
|
060e196 to
5a90792
Compare
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Manish Malhotra.
|
5a90792 to
96ae25c
Compare
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Manish Malhotra.
|
96ae25c to
575c1f7
Compare
|
Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Manish Malhotra.
|
575c1f7 to
ed4476c
Compare
ed4476c to
0b7af26
Compare
|
@ebyhr resolved the conflitcs |
ebyhr
left a comment
There was a problem hiding this comment.
Commit granularity is wrong. Please squash commits into one or separate them into appropriate commits.
4ee4dd3 to
be3aa53
Compare
thanks @ebyhr |
be3aa53 to
3fb2f77
Compare
Description
This will avoid using custom code to populate the Snapshot metadata table. This improvement will use the Iceberg's metadata
table.scan, hence any changes to the underlying Iceberg's metadata table's scan logic will be used here. Spark engine also uses the Iceberg's metadatatable.scaninstead of custom code, so this will also help to reduce regression between Trino and Spark engines.Improvement
Iceberg connector
No change in the syntax or the usage of the
$snapshotsmetadata tableRelated issues, pull requests, and links
SnapshotsTable#12649Documentation
(x) No documentation is needed.