Skip to content

Commit

Permalink
Fix catalog tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragmantri committed Dec 16, 2024
1 parent 7400b3f commit 8422e26
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1590,13 +1590,15 @@ public void testCompleteCreateTransactionMultipleSchemas() {
updateSchema.commit();

UpdatePartitionSpec updateSpec = create.updateSpec().addField("new_col");
PartitionSpec newSpec = updateSpec.apply();
updateSpec.commit();

ReplaceSortOrder replaceSortOrder = create.replaceSortOrder().asc("new_col");
SortOrder newSortOrder = replaceSortOrder.apply();
replaceSortOrder.commit();

// Get new spec after commit to write new file with new spec
PartitionSpec newSpec = create.table().spec();

DataFile anotherFile =
DataFiles.builder(newSpec)
.withPath("/path/to/data-b.parquet")
Expand Down

0 comments on commit 8422e26

Please sign in to comment.