Skip to content
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 and enable kudu update test #24477

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -927,19 +927,19 @@ public void testRowLevelDelete()
}

/**
* This test fails intermittently because Kudu doesn't have strong enough
* semantics to support writing from multiple threads.
* createTableForWrites will create the table using the first column as the primary key.
* Attempting to update the primary key (`nationkey` in this case) caused a failure due to duplicate values.
* This override modifies the test to focus on updating the `regionkey` instead.
*/
@Test
@Disabled
@Override
public void testUpdate()
{
withTableName("test_update", tableName -> {
createTableForWrites("CREATE TABLE %s " + NATION_COLUMNS, tableName, Optional.empty());
assertUpdate("INSERT INTO " + tableName + " SELECT * FROM nation", 25);
assertUpdate("UPDATE " + tableName + " SET nationkey = 100 WHERE regionkey = 2", 5);
assertQuery("SELECT count(*) FROM " + tableName + " WHERE nationkey = 100", "VALUES 5");
assertUpdate("UPDATE " + tableName + " SET regionkey = 100 WHERE regionkey = 2", 5);
ebyhr marked this conversation as resolved.
Show resolved Hide resolved
assertQuery("SELECT count(*) FROM " + tableName + " WHERE regionkey = 100", "VALUES 5");
});
}

Expand Down
Loading