Allow updating reader_version and writer_version properties for Delta tables#16165
Conversation
reader_version and writer_version properties with CREATE TABLE and ALTER TABLE in Delta table
reader_version and writer_version properties with CREATE TABLE and ALTER TABLE in Delta tablereader_version and writer_version properties in Delta table
d128e82 to
8f7c145
Compare
8f7c145 to
1a0ad16
Compare
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
reader_version and writer_version properties in Delta tablereader_version and writer_version properties for Delta tables
homar
left a comment
There was a problem hiding this comment.
As @findinpath wrote, I think some tests could be splitted apart from that looks very good to me
1a0ad16 to
6206c66
Compare
|
Thanks @findinpath | @homar for the review. Addressed review comments. |
|
@krvikash Could you rebase to resolve conflicts? |
6206c66 to
69f1bc2
Compare
|
Rebased with master and resolve conflicts. |
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeTableProperties.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
529f058 to
18570c8
Compare
|
Thanks, @ebyhr for the review. I have addressed the comments. |
alexjo2144
left a comment
There was a problem hiding this comment.
Overall, looks pretty good. Couple small things and behavior questions
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
I don't think we should do this. If the user sets the writer version to 2, when they do a show create table it should say 2.
There was a problem hiding this comment.
If the user sets the writer version to less than 4 and cdf is enabled then it will throw an exception.
There was a problem hiding this comment.
Got it, I see what you're doing now 👍
There was a problem hiding this comment.
Though, if some has set writer version to 5 explicitly, this will set it to 4. I think you only want to do this if writerVersion hasn't been set explicitly
I know you can't set it to 5 yet, but you will be able to soon.
There was a problem hiding this comment.
I think you only want to do this if writerVersion hasn't been set explicitly
Addressed.
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
This could be follow-up in a separate PR, but I think we want to remove these constants and add default reader/writer versions as config properties in DeltaLakeConfig.
If you're going to enable CDF on every table you make, you'd want to have v4 be the default.
18570c8 to
e210fa3
Compare
|
Thanks, @alexjo2144 for the review. Addressed comments. |
3622e94 to
ce40c8a
Compare
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeMetadata.java
Outdated
Show resolved
Hide resolved
2a9161f to
be93e8c
Compare
|
Addressed comments. |
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/BaseDeltaLakeMinioConnectorTest.java
Outdated
Show resolved
Hide resolved
be93e8c to
853b8e6
Compare
|
Could you fix error-prone failure? |
853b8e6 to
2630c3b
Compare
|
Fixed CI failure. |
|
/test-with-secrets sha=2630c3b47f47bf4b5193e3cb72e8f1d51de1445d |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4242355164 |
2630c3b to
082a0c2
Compare
|
Fixed product test: |
|
/test-with-secrets sha=082a0c2caba8e5ef24eda0a3615b591a07b8f0cc |
|
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/4249084669 |
Description
Fixes #15932
Release notes
(X) Release notes are required, with the following suggested text: