Skip to content

Commit 8dd20b2

Browse files
author
wangyong.alen
committed
fix(test): avoid gcc range-loop-construct error in scan inte test
1 parent 7c9545a commit 8dd20b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/inte/scan_and_read_inte_test.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ TEST_P(ScanAndReadInteTest, TestWithAppendBucketKeyPointLookup) {
498498
// These keys share a current two-bucket selection but need different historical buckets.
499499
for (int32_t lookup_index : {32, other_index}) {
500500
// The data was written with four buckets. Read it with rescaled table options too.
501-
for (const std::string& current_bucket_count : {"2", "4", "8", "17"}) {
501+
for (const std::string current_bucket_count : {"2", "4", "8", "17"}) {
502502
SCOPED_TRACE(current_bucket_count);
503503
const std::string lookup_key = fmt::format("key{:03}", lookup_index);
504504
auto lookup_predicate = PredicateBuilder::Equal(
@@ -3161,7 +3161,7 @@ TEST_P(ScanAndReadInteTest, TestWithPKBucketSelectByPredicate) {
31613161
Literal(static_cast<int32_t>(0)));
31623162

31633163
// Historical files use two buckets even when the current option has changed.
3164-
for (const std::string& current_bucket_count : {"2", "4", "8", "17"}) {
3164+
for (const std::string current_bucket_count : {"2", "4", "8", "17"}) {
31653165
SCOPED_TRACE(current_bucket_count);
31663166
ScanContextBuilder scan_context_builder(table_path);
31673167
scan_context_builder.AddOption(Options::SCAN_SNAPSHOT_ID, "6");

0 commit comments

Comments
 (0)