Skip to content

Commit

Permalink
patch vss
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Oct 23, 2024
1 parent cc58586 commit 97a93dc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
38 changes: 38 additions & 0 deletions .github/patches/extensions/vss/includes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
diff --git a/src/hnsw/hnsw_index_physical_create.cpp b/src/hnsw/hnsw_index_physical_create.cpp
index 543b042..f8e9ab9 100644
--- a/src/hnsw/hnsw_index_physical_create.cpp
+++ b/src/hnsw/hnsw_index_physical_create.cpp
@@ -4,6 +4,7 @@
#include "duckdb/catalog/catalog_entry/duck_table_entry.hpp"
#include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp"
#include "duckdb/common/exception/transaction_exception.hpp"
+#include "duckdb/common/types/column/column_data_scan_states.hpp"
#include "duckdb/main/attached_database.hpp"
#include "duckdb/main/database.hpp"
#include "duckdb/storage/storage_manager.hpp"
@@ -318,4 +319,4 @@ double PhysicalCreateHNSWIndex::GetSinkProgress(ClientContext &context, GlobalSi
return 50.0 + (50.0 * static_cast<double>(state.built_count) / static_cast<double>(state.loaded_count));
}

-} // namespace duckdb
\ No newline at end of file
+} // namespace duckdb
diff --git a/src/hnsw/hnsw_index_pragmas.cpp b/src/hnsw/hnsw_index_pragmas.cpp
index 50b5779..50e777d 100644
--- a/src/hnsw/hnsw_index_pragmas.cpp
+++ b/src/hnsw/hnsw_index_pragmas.cpp
@@ -2,6 +2,7 @@
#include "duckdb/catalog/dependency_list.hpp"
#include "duckdb/common/mutex.hpp"
#include "duckdb/function/function_set.hpp"
+#include "duckdb/function/pragma_function.hpp"
#include "duckdb/optimizer/matcher/expression_matcher.hpp"
#include "duckdb/planner/expression_iterator.hpp"
#include "duckdb/planner/operator/logical_get.hpp"
@@ -202,4 +203,4 @@ void HNSWModule::RegisterIndexPragmas(DatabaseInstance &db) {
ExtensionUtil::RegisterFunction(db, info_function);
}

-} // namespace duckdb
\ No newline at end of file
+} // namespace duckdb
4 changes: 0 additions & 4 deletions src/include/duckdb/function/scalar/generic_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
#pragma once

#include "duckdb/function/function_set.hpp"
#include "duckdb/function/built_in_functions.hpp"
#include "duckdb/common/serializer/serializer.hpp"
#include "duckdb/common/serializer/deserializer.hpp"
#include "duckdb/planner/expression/bound_aggregate_expression.hpp"

namespace duckdb {

Expand Down

0 comments on commit 97a93dc

Please sign in to comment.