-
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
Support inserting into Delta Lake table having invariants #16136
Conversation
...rino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorSmokeTest.java
Show resolved
Hide resolved
c5a6d11
to
8a04f92
Compare
8a04f92
to
90536cd
Compare
/test-with-secrets sha=90536cded9528a3748e25a2a8318833482b68a62 |
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/TestDeltaLakeConnectorSmokeTest.java
Show resolved
Hide resolved
assertThatThrownBy(() -> query("INSERT INTO invariants VALUES(2)")) | ||
.hasMessageContaining("Inserts are not supported for tables with delta invariants"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How was that working? Shouldn't it be failing with table not found?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I understand the question correctly. The previous table name was invariants
having column invariants and it existed, so it shouldn't throw table not found in my opinion. I renamed to a new table name with random suffix to avoid modifying shared tables.
90536cd
to
c22bab7
Compare
Description
Support inserting into Delta Lake table having invariants
Release notes
(x) Release notes are required, with the following suggested text: