Skip to content

Commit 7e82d67

Browse files
committed
fix
1 parent eda8dd4 commit 7e82d67

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/paimon/core/mergetree/external_sort_buffer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ Result<int64_t> ExternalSortBuffer::SpillToDisk(
167167
PAIMON_ASSIGN_OR_RAISE(
168168
std::unique_ptr<SpillWriter> spill_writer,
169169
SpillWriter::Create(options_.GetFileSystem(), write_schema_, spill_channel_enumerator_,
170-
spill_channel_manager_, pool_, spill_compress_options.compress,
171-
spill_compress_options.zstd_level));
170+
spill_channel_manager_, spill_compress_options.compress,
171+
spill_compress_options.zstd_level, pool_));
172172
auto cleanup_guard = ScopeGuard([&]() {
173173
[[maybe_unused]] auto status =
174174
spill_channel_manager_->DeleteChannel(spill_writer->GetChannelId());

src/paimon/core/mergetree/spill_reader_writer_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class SpillReaderWriterTest : public ::testing::TestWithParam<std::string> {
6464

6565
Result<std::unique_ptr<SpillWriter>> CreateSpillWriter() const {
6666
return SpillWriter::Create(file_system_, write_schema_, channel_enumerator_,
67-
spill_channel_manager_, pool_, GetParam(),
68-
/*compression_level=*/1);
67+
spill_channel_manager_, GetParam(), /*compression_level=*/1,
68+
pool_);
6969
}
7070

7171
FileIOChannel::ID WriteSpillFile(

src/paimon/core/mergetree/spill_writer.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ SpillWriter::SpillWriter(const std::shared_ptr<FileSystem>& fs,
2929
const std::shared_ptr<arrow::Schema>& schema,
3030
const std::shared_ptr<FileIOChannel::Enumerator>& channel_enumerator,
3131
const std::shared_ptr<SpillChannelManager>& spill_channel_manager,
32-
const std::shared_ptr<MemoryPool>& pool, const std::string& compression,
33-
int32_t compression_level)
32+
const std::string& compression, int32_t compression_level,
33+
const std::shared_ptr<MemoryPool>& pool)
3434
: fs_(fs),
3535
schema_(schema),
3636
channel_enumerator_(channel_enumerator),
@@ -43,11 +43,11 @@ Result<std::unique_ptr<SpillWriter>> SpillWriter::Create(
4343
const std::shared_ptr<FileSystem>& fs, const std::shared_ptr<arrow::Schema>& schema,
4444
const std::shared_ptr<FileIOChannel::Enumerator>& channel_enumerator,
4545
const std::shared_ptr<SpillChannelManager>& spill_channel_manager,
46-
const std::shared_ptr<MemoryPool>& pool, const std::string& compression,
47-
int32_t compression_level) {
46+
const std::string& compression, int32_t compression_level,
47+
const std::shared_ptr<MemoryPool>& pool) {
4848
std::unique_ptr<SpillWriter> writer(new SpillWriter(fs, schema, channel_enumerator,
49-
spill_channel_manager, pool, compression,
50-
compression_level));
49+
spill_channel_manager, compression,
50+
compression_level, pool));
5151
PAIMON_RETURN_NOT_OK(writer->Open());
5252
return writer;
5353
}

src/paimon/core/mergetree/spill_writer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class SpillWriter {
4242
const std::shared_ptr<FileSystem>& fs, const std::shared_ptr<arrow::Schema>& schema,
4343
const std::shared_ptr<FileIOChannel::Enumerator>& channel_enumerator,
4444
const std::shared_ptr<SpillChannelManager>& spill_channel_manager,
45-
const std::shared_ptr<MemoryPool>& pool, const std::string& compression,
46-
int32_t compression_level);
45+
const std::string& compression, int32_t compression_level,
46+
const std::shared_ptr<MemoryPool>& pool);
4747

4848
SpillWriter(const SpillWriter&) = delete;
4949
SpillWriter& operator=(const SpillWriter&) = delete;
@@ -57,8 +57,8 @@ class SpillWriter {
5757
SpillWriter(const std::shared_ptr<FileSystem>& fs, const std::shared_ptr<arrow::Schema>& schema,
5858
const std::shared_ptr<FileIOChannel::Enumerator>& channel_enumerator,
5959
const std::shared_ptr<SpillChannelManager>& spill_channel_manager,
60-
const std::shared_ptr<MemoryPool>& pool, const std::string& compression,
61-
int32_t compression_level);
60+
const std::string& compression, int32_t compression_level,
61+
const std::shared_ptr<MemoryPool>& pool);
6262

6363
Status Open();
6464

0 commit comments

Comments
 (0)