From 4fa2c936cb0c6731efc411a6ea5ab83f99cfecc0 Mon Sep 17 00:00:00 2001 From: Nghia Truong Date: Thu, 1 Dec 2022 12:07:46 -0800 Subject: [PATCH] Fix compile issue Signed-off-by: Nghia Truong --- cpp/tests/io/json_chunked_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/tests/io/json_chunked_reader.cpp b/cpp/tests/io/json_chunked_reader.cpp index 28b41c5691f..0687078a920 100644 --- a/cpp/tests/io/json_chunked_reader.cpp +++ b/cpp/tests/io/json_chunked_reader.cpp @@ -75,7 +75,7 @@ std::vector skeleton_for_parellel_chunk_reader( std::vector tables; // Process each chunk in parallel. - for (auto const [chunk_start, chunk_end] : record_ranges) { + for (auto const& [chunk_start, chunk_end] : record_ranges) { if (chunk_start == -1 or chunk_end == -1) continue; reader_opts_chunk.set_byte_range_offset(chunk_start); reader_opts_chunk.set_byte_range_size(chunk_end - chunk_start);