Skip to content

Commit

Permalink
Apply get_storage_info.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Aug 25, 2024
1 parent 97ab7ff commit eefbd67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hnsw/hnsw_index_physical_create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ PhysicalCreateHNSWIndex::PhysicalCreateHNSWIndex(LogicalOperator &op, TableCatal
//-------------------------------------------------------------
class CreateHNSWIndexGlobalState final : public GlobalSinkState {
public:
CreateHNSWIndexGlobalState(const PhysicalOperator &op_p) : op(op_p) {}

const PhysicalOperator &op;
//! Global index to be added to the table
unique_ptr<HNSWIndex> global_index;

Expand All @@ -51,7 +54,7 @@ class CreateHNSWIndexGlobalState final : public GlobalSinkState {
};

unique_ptr<GlobalSinkState> PhysicalCreateHNSWIndex::GetGlobalSinkState(ClientContext &context) const {
auto gstate = make_uniq<CreateHNSWIndexGlobalState>();
auto gstate = make_uniq<CreateHNSWIndexGlobalState>(*this);

vector<LogicalType> data_types = {unbound_expressions[0]->return_type, LogicalType::ROW_TYPE};
gstate->collection = make_uniq<ColumnDataCollection>(BufferManager::GetBufferManager(context), data_types);
Expand Down

0 comments on commit eefbd67

Please sign in to comment.