-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Deprecate @
based syntax for accessing iceberg snapshots
#10768
Conversation
c058bda
to
e32c0ad
Compare
Thanks, @phd3 for the patch I am wondering why shall we keep around this ambiguous access, I think it is better to fail when a snapshot id is not valid and the user can still access the latest snapshot when using table name with no snapshot. IOW this flag is yet another flag with no clear added value? |
Current behavior also allows interpreting that number as a TS. Since this syntax has been around for a while, IMO would be worth providing a switch before fully removing. but let's see what others think too |
Flaky #10752 |
|
Should we make this config an enum of BOTH, SNAPSHOT_ONLY, NONE? |
442c95e
to
443ec11
Compare
@electrum updated to add enums. would you like to take another look? |
#10258 is merged now. |
@phd3 i am fine with simple boolean flag |
443ec11
to
7b3c30e
Compare
8d3507f
to
5d4d517
Compare
@findepi ptal |
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergSessionProperties.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/IcebergUtil.java
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/test/java/io/trino/plugin/iceberg/TestIcebergSnapshots.java
Outdated
Show resolved
Hide resolved
plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/TestIcebergSnapshots.java
Outdated
Show resolved
Hide resolved
...-iceberg/src/test/java/io/trino/plugin/iceberg/TestLegacySyntaxForIcebergSnapshotAccess.java
Show resolved
Hide resolved
AS OF syntax should be used instead.
5d4d517
to
fa678d1
Compare
@
based syntax for accessing iceberg snapshots
Description
this deprecates
@
based syntax for accessing iceberg snapshots.iceberg connector
Related issues, pull requests, and links
Documentation
(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
() No release notes entries required.
(x) Release notes entries required with the following suggested text: