Skip to content

Commit

Permalink
*: fix darwin build (#9558)
Browse files Browse the repository at this point in the history
ref #6233

*: fix darwin build

Signed-off-by: Lloyd-Pottiger <[email protected]>
  • Loading branch information
Lloyd-Pottiger authored Oct 28, 2024
1 parent b36199e commit 5d89578
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ ColumnFileTinyPtr ColumnFileTinyVectorIndexWriter::buildIndexForFile(
for (const auto & [col_id, index_infos] : col_indexes)
{
// Make sure the column_id is in the schema.
const auto cd_iter = std::find_if(column_defines.cbegin(), column_defines.cend(), [&](const auto & cd) {
return cd.id == col_id;
});
const auto cd_iter = std::find_if( //
column_defines.cbegin(),
column_defines.cend(),
[col_id = col_id](const auto & cd) { return cd.id == col_id; });
RUNTIME_CHECK_MSG(
cd_iter != column_defines.cend(),
"Cannot find column_id={} in file_id={}",
Expand Down

0 comments on commit 5d89578

Please sign in to comment.