Skip to content

Commit

Permalink
sort files
Browse files Browse the repository at this point in the history
  • Loading branch information
liuneng1994 committed Jul 16, 2024
1 parent f3d1c34 commit f32127b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ void SparkMergeTreeWriter::commitPartToRemoteStorageIfNeeded()
auto src_disk = storage->getStoragePolicy()->getAnyDisk();
auto dest_disk = dest_storage->getStoragePolicy()->getAnyDisk();
auto tx = dest_disk->createTransaction();
std::sort(files.begin(), files.end());
for (const auto & file : files)
{
auto read_buffer = src_disk->readFile(local_relative_path + "/" + file, read_settings);
Expand Down

0 comments on commit f32127b

Please sign in to comment.