vector extension optional params + features#5955
Conversation
|
General changes and worries:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5955 +/- ##
=======================================
Coverage 85.76% 85.76%
=======================================
Files 1641 1641
Lines 75467 75525 +58
Branches 8985 9003 +18
=======================================
+ Hits 64721 64777 +56
- Misses 10488 10490 +2
Partials 258 258
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Benchmark ResultMaster commit hash:
Other queries
|
|
New solution checks if |
…tableName) with basic test
|
Above comment resolved, should be good to go |
| @@ -0,0 +1,87 @@ | |||
| #include "catalog/catalog.h" | |||
There was a problem hiding this comment.
I don't think we need such function right now. @ray6080 can comment there as well.
There was a problem hiding this comment.
Fine either ways, just saw a usecase here: https://github.com/getzep/graphiti/blob/c0fcc82ebef01dadde12d669dfe3beadfa238a1e/graphiti_core/utils/maintenance/graph_data_operations.py#L40
| const auto nodeTableEntry = HNSWIndexUtils::bindNodeTable(*context, tableName); | ||
| if (HNSWIndexUtils::validateIndexExistence(*context, nodeTableEntry, indexName, | ||
| HNSWIndexUtils::IndexOperation::CREATE, config.conflictAction)) { | ||
| return std::make_unique<CreateHNSWIndexBindData>(context, indexName, nullptr, 0, 0, |
There was a problem hiding this comment.
We inline comments as follows:
| return std::make_unique<CreateHNSWIndexBindData>(context, indexName, nullptr, 0, 0, | |
| return std::make_unique<CreateHNSWIndexBindData>(context, indexName, nullptr /*nodeTableEntry*/, 0 /*propertyID*/, 0 /*numNodes*/, |
| catalog::TableCatalogEntry* tableEntry; | ||
| common::property_id_t propertyID; | ||
| HNSWIndexConfig config; | ||
| bool skipAfterBind; |
There was a problem hiding this comment.
I would rename this to skipIndexCreation, which is more accurate.
| struct DropHNSWIndexBindData final : TableFuncBindData { | ||
| catalog::NodeTableCatalogEntry* tableEntry; | ||
| std::string indexName; | ||
| bool skipAfterBind; |
There was a problem hiding this comment.
Rename to something along the line of skipIndexDropping.
Description
skip_if_existsoptional param forCREATE_VECTOR_INDEXcypher functionskip_if_not_existsoptional param forDROP_VECTOR_INDEXcypher functionerror_suppress.testBasic test of above indittodrop_all.testFixes #5808
Associated docs (issue or PR):
#5808
#5755 (not too sure whether I should cover this as well)
Contributor agreement