From da942b542801cb5d4c5ff79808ced3e68b851c72 Mon Sep 17 00:00:00 2001 From: Youngwb Date: Thu, 2 Jan 2025 18:54:37 +0800 Subject: [PATCH] [UT] Fix Compilation error with clang (#54591) Signed-off-by: Youngwb --- be/test/formats/parquet/file_reader_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/test/formats/parquet/file_reader_test.cpp b/be/test/formats/parquet/file_reader_test.cpp index 92c93677c5ba8..2cbd1bf118a0d 100644 --- a/be/test/formats/parquet/file_reader_test.cpp +++ b/be/test/formats/parquet/file_reader_test.cpp @@ -1081,7 +1081,8 @@ TEST_F(FileReaderTest, TestGetNext) { TEST_F(FileReaderTest, TestGetNextWithSkipID) { int64_t ids[] = {1}; std::set need_skip_rowids(ids, ids + 1); - SkipRowsContextPtr skip_rows_ctx = std::make_shared(need_skip_rowids); + SkipRowsContextPtr skip_rows_ctx = std::make_shared(); + skip_rows_ctx->need_skip_rowids = need_skip_rowids; auto file = _create_file(_file1_path); auto file_reader = std::make_shared(config::vector_chunk_size, file.get(), std::filesystem::file_size(_file1_path),