Skip to content

Commit

Permalink
save game
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiman committed Jan 22, 2025
1 parent c94cf84 commit 0ef4ff0
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/v/iceberg/tests/update_schema_action_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,25 @@ TEST_F(UpdateSchemaActionTest, TestNewMultipleSchemas) {
0);
}

TEST_F(UpdateSchemaActionTest, TestInvalidSchema) {
// Removing columns is not yet supported.
// TODO(oren): how to error out the transaction now? is there another way?
// IDEA: Maybe by checking whether all fields are nullable?
// TEST_F(UpdateSchemaActionTest, TestInvalidSchema) {
// transaction tx(create_table());

// // Schema ID collision
// auto res = tx.set_schema(make_schema(12345)).get();
// res = tx.set_schema(make_schema(12345, 1)).get();

// ASSERT_TRUE(res.has_error());
// ASSERT_TRUE(tx.error().has_value());

// // Adding a new schema after attempting a bad update also fails.
// auto new_new_schema = make_schema(12346);
// res = tx.set_schema(std::move(new_new_schema)).get();
// ASSERT_TRUE(res.has_error());
// ASSERT_TRUE(tx.error().has_value());
// }

TEST_F(UpdateSchemaActionTest, TestRemoveColumn) {
// Removing columns is allowed
transaction tx(create_table());
Expand Down

0 comments on commit 0ef4ff0

Please sign in to comment.