-
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
Fix reading from Delta in a transaction #11792
Conversation
"test_tx_insert", | ||
"(a bigint)")) { | ||
String tableName = table.getName(); | ||
inTransaction(session -> assertUpdate(session, "INSERT INTO " + tableName + " VALUES 42", 1)); |
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.
just to make sure, this would work without your change(removing that 'verify') right?
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.
for Detla, the test would break at the skipTestUnless(hasBehavior(SUPPORTS_MULTI_STATEMENT_WRITES));
because Delta doesn't support this. Only Hive does ATM, AFAIR.
Delta connector supports write in autocommit mode only, but it should allow multiple reads in a transaction (e.g. reading from Delta and writing to Hive connector). The commit removes the check from `DeltaLakeConnector` since appropriate check is being done in `InMemoryTransactionManager`.
b97012b
to
b6f35af
Compare
plugin/trino-delta-lake/src/main/java/io/trino/plugin/deltalake/DeltaLakeConnector.java
Show resolved
Hide resolved
CI #10932 |
CI #11825 |
Delta connector supports write in autocommit mode only, but it should
allow multiple reads in a transaction (e.g. reading from Delta and
writing to Hive connector).