Skip to content

Commit 3785097

Browse files
mikewhbarrowbowang
andauthored
fix: compile error error: could not convert xx from (#136)
Co-authored-by: arrowbowang <arrowbowang@tencent.com>
1 parent 534eae7 commit 3785097

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lance_scan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2190,7 +2190,7 @@ LanceExecPushdown(ClientContext &context, Optimizer &optimizer,
21902190
agg_op.group_index, agg_op.aggregate_index, agg_op.groups.size(),
21912191
expected_types, std::move(exec_get));
21922192
exec->SetEstimatedCardinality(estimated_cardinality);
2193-
return exec;
2193+
return std::move(exec);
21942194
};
21952195

21962196
if (op->type == LogicalOperatorType::LOGICAL_ORDER_BY) {

src/lance_storage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ class LanceDuckCatalog final : public DuckCatalog {
11471147
state->open_path + LanceFormatErrorSuffix());
11481148
}
11491149

1150-
return state;
1150+
return std::move(state);
11511151
}
11521152

11531153
struct LocalState final : public LocalSinkState {};

0 commit comments

Comments
 (0)