instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
RediSearch__RediSearch__7829 | RediSearch/RediSearch | 7,829 | defect | 67af8f6871fcb3322bfd112df3822634e19f5fac | 2ea538100e19d2a37bd5f59eee8a4effcaff8e34 | [8.4][MOD-12171] [MOD-12169] Implement ASM-aware search flow (#7343) | Backport #7343 to 8.4
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduces ASM-aware execution and slot validation across query flows with versioned keyspace tracking and controlled trimming.
>
> - Replace `slotsVersion`/`SharedSlotRangeArray` with `keySpaceVersion` + `querySlots` across `AREQ`, pipeline params, and `... | diff --git a/deps/RedisModulesSDK b/deps/RedisModulesSDK
index 69baff4c4eb..4ff2dd16552 160000
--- a/deps/RedisModulesSDK
+++ b/deps/RedisModulesSDK
@@ -1 +1 @@
-Subproject commit 69baff4c4eb46575b611b337e9d57456eb1cb8e9
+Subproject commit 4ff2dd165527acdf97adeaade5c1676303383e3c
diff --git a/src/aggregate/aggregate.h ... | 6 | 3 | 1 | [{"id": "G0", "claim": "Remove the now-unused `#include \"concurrent_ctx.h\"` from src/coord/hybrid/dist_hybrid.c.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The temporary hardcoded `get-redis: \"8.4\"` should also be applied in the merge qu... | null |
RediSearch__RediSearch__8141 | RediSearch/RediSearch | 8,141 | defect | fd63e0c3cf864804885bb2b2688e4444d861b6aa | f78f168521c1a5d22875470d11daa0c2e04cc729 | test: add dummy simple scorers to ease testing | Add a debug command that registers very simple Scoring functions that return simple stats that are easy to reason abotu and test:
- TestNumDocs ...
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduces simple test scoring functions and a debug command to register them for testing.
>
> - Adds `FT.DEBUG REGISTER_TE... | diff --git a/src/debug_commands.c b/src/debug_commands.c
index a8abf6460e4..0464b3d34e9 100644
--- a/src/debug_commands.c
+++ b/src/debug_commands.c
@@ -33,6 +33,7 @@
#include "info/info_command.h"
#include "iterators/inverted_index_iterator.h"
#include "search_disk.h"
+#include "ext/default.h"
DebugCTX globalDeb... | 3 | 1 | 0 | [{"id": "G0", "claim": "The macro TEST_SIMPLE_SUM_SCORER_NAME is defined identically in both src/ext/default.h and src/ext/default.c, and the redundant definition in the implementation file should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2",... | null |
RediSearch__RediSearch__8145 | RediSearch/RediSearch | 8,145 | defect | d3ef7cef595281a239b6ba72950d244e2c5ad129 | 237e7b356a25cb0d027d54cb4e21c8343c606ad6 | [MOD-12307] use NumDocs from Trie to add term IDF and BM25 IDF to Results for later scoring in Search on Disk | For Search on Disk, we want to extract the numDocs stored in the Trie as in #8142 to compute IDF and BM25 IDF and pass to SearchDisk API so that it can be returned.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduces IDF utilities and wires term statistics into the Search-on-Disk path for later scoring.
>
> - New `id... | diff --git a/src/debug_commands.c b/src/debug_commands.c
index a8abf6460e4..cd86f090e18 100644
--- a/src/debug_commands.c
+++ b/src/debug_commands.c
@@ -156,7 +156,7 @@ DEBUG_COMMAND(DumpTerms) {
RedisModule_ReplyWithArray(ctx, sctx->spec->terms->size);
TrieIterator *it = Trie_Iterate(sctx->spec->terms, "", 0, ... | 6 | 5 | 3 | [{"id": "G0", "claim": "In addTerm and charIterCb the calculated idf and bm25_idf are discarded and hardcoded 0.0, 0.0 are passed to SearchDisk_NewTermIterator instead, defeating the PR's purpose of passing IDF values for scoring on those paths.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc... | null |
RediSearch__RediSearch__8254 | RediSearch/RediSearch | 8,254 | defect | 86e9fdc6c0a0e5f39a4233112ee0856544f90bac | d10189ccb50659162ae0a12c241d288148ed3d57 | enforce sctx passed to all II iterators | The Rust II numerators make the `sctx` parameter mandatory so let's enforce it already.
#### Mark if applicable
- [ ] This PR introduces API changes
- [ ] This PR introduces serialization changes
#### Release Notes
- [ ] This PR requires release notes
- [x] This PR does not require release notes
If a r... | diff --git a/src/iterators/inverted_index_iterator.c b/src/iterators/inverted_index_iterator.c
index edcb594f621..1213a7c8450 100644
--- a/src/iterators/inverted_index_iterator.c
+++ b/src/iterators/inverted_index_iterator.c
@@ -57,8 +57,9 @@ static ValidateStatus TermCheckAbort(QueryIterator *base) {
return VALID... | 3 | 2 | 0 | [{"id": "G0", "claim": "The change should keep the comment explaining that sctx and term should always be set except in some tests, instead of silently replacing RS_ASSERT(term) with a guard.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "spell_ch... | null |
RediSearch__RediSearch__8372 | RediSearch/RediSearch | 8,372 | defect | 9e33142cd0cfc45a572dbdbd239b5adbdf80baae | c0ec0e5afad32539dd9456a1fe65cd4bcfaa7b59 | [MOD-14060] Port RSQueryTerm to Rust | ## Describe the changes in the pull request
Move `RSQueryTerm` over to Rust.
I got rid of `*mut RSQueryTerm` _almost_ everywhere. It stayed in one place: `RSTermRecord::Owned::term`. There's a reason, unfortunately:
```rust
/// Create an owned copy of this term record, allocating new memory for the offsets... | diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 77332d5d1d0..6ccaf6db9cb 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -102,7 +102,6 @@ set(FINAL_OBJECTS
$<TARGET_OBJECTS:iterators>
$<TARGET_OBJECTS:wildcard>
$<TARGET_OBJECTS:index_result>
- $<TARGET_OBJECTS:query_term>
$... | 7 | 4 | 0 | [{"id": "G0", "claim": "Automated benchmarking reports confirmed latency regressions on the branch, including a +35.6% FT.SEARCH regression on ftsb-1M-enwiki_abstract-hashes-fulltext-2word-intersection-query-non-sortable and eight regressions beyond the 8% waterline.", "category": "performance", "verdict": "uncertain",... | null |
RediSearch__RediSearch__8510 | RediSearch/RediSearch | 8,510 | defect | 2769b7f218ab3b43ab938f6f8fd6c43769225a38 | e14cc2d53d2967c5adc705398137fb0eed413e18 | Make `RSTermQuery` idiomatic Rust | ## Describe the changes in the pull request
This changes the raw pointer inside `RSQueryTerm` to a `Option<Box<[u8]>>` which is idiomatic Rust. This is possible because everything (C and Rust code) only accesses the internal using accessors / setters.
This change does require a change in the C code which expected n... | diff --git a/src/ext/default.c b/src/ext/default.c
index 433a3d11530..ca52059d55f 100644
--- a/src/ext/default.c
+++ b/src/ext/default.c
@@ -224,12 +224,13 @@ static double BM25Scorer(const ScoringFunctionArgs *ctx, const RSIndexResult *r,
******************************************************************************... | 1 | 1 | 1 | [{"id": "G0", "claim": "new_bytes stores the term via String::from_utf8_lossy, which replaces non-UTF-8 bytes with U+FFFD and corrupts the bytes used for exact-match inverted-index lookups, so iterators can abort and silently drop search results; lossy conversion should not be used at all — either accept non-UTF-8 stri... | null |
RediSearch__RediSearch__8586 | RediSearch/RediSearch | 8,586 | defect | 5d82e19f4488c96c2333e5cc3f05b6c5b75aeed5 | 391e38522edb351f5aacd499b1806ea90e60a068 | add error flag to compilation to avoid uninit jump | ## Describe the changes in the pull request
Add compilation option to fail if vars are unitialized before jumping, specially on goto scenarios.
#### Mark if applicable
- [ ] This PR introduces API changes
- [ ] This PR introduces serialization changes
#### Release Notes
- [ ] This PR requires release note... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index 73e189cb3c9..7f93198a2df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,7 @@ function(setup_cc_options)
message("# CMAKE_C_COMPILER_ID: " ${CMAKE_C_COMPILER_ID})
# Common compiler flags
- set(CMAKE_C_FLAGS "-fPIC -g -pthread -fno-strict-al... | 1 | 1 | 0 | [{"id": "G3", "claim": "The `if (first_newjob == NULL) goto fail;` check in create_jobs_chain is redundant because rm_malloc never fails, so it should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
RediSearch__RediSearch__8937 | RediSearch/RediSearch | 8,937 | defect | 35f09f0a016c0784a6db0b10406c57ccc7fe6503 | c61720e5055807ac0c44cdf8b6bfaefaa65dc9ec | Remove unnecessary src prefixes in C includes | Remove unnecessary src prefixes in C includes
#### Release Notes
- [ ] This PR requires release notes
- [x] This PR does not require release notes
If a release note is required (bug fix / new feature / enhancement), describe the **user impact** of this PR in the title.
<!-- CURSOR_SUMMARY -->
---
> [!NOT... | diff --git a/src/coord/debug_commands.c b/src/coord/debug_commands.c
index 6c0481da380..566de08ffdd 100644
--- a/src/coord/debug_commands.c
+++ b/src/coord/debug_commands.c
@@ -10,7 +10,7 @@
#include "coord/rmr/rq.h"
#include "commands.h"
#include "coord/rmr/io_runtime_ctx.h"
-#include "debug_commands.h"
+#include "... | 1 | 1 | 1 | [{"id": "G0", "claim": "Changing #include \"debug_commands.h\" to #include \"src/debug_commands.h\" in src/coord/debug_commands.c points at the different file src/debug_commands.h instead of the .c file's own header src/coord/debug_commands.h, so the file no longer includes its matching header that declares RegisterCoo... | null |
RediSearch__RediSearch__9403 | RediSearch/RediSearch | 9,403 | defect | df102882b3771359324d60bb13d7daac84bbe280 | 8a61b681e18bd89e8d57bdc6c4f7c81cc53d6fa0 | [MOD-15369] Trie - Clean up existing interface in C | ## Describe the changes in the pull request
1. **Current**: The C trie / triemap modules expose several debug-only or single-caller symbols through their public headers (`trie.h`, `trie_type.h`, `rune_util.h`, generated `triemap.h`). A handful of internal helpers are declared but unused, and a few stale commented-ou... | diff --git a/src/redisearch_rs/c_entrypoint/triemap_ffi/src/find_prefixes.rs b/src/redisearch_rs/c_entrypoint/triemap_ffi/src/find_prefixes.rs
index fa8826331d6..47896b958af 100644
--- a/src/redisearch_rs/c_entrypoint/triemap_ffi/src/find_prefixes.rs
+++ b/src/redisearch_rs/c_entrypoint/triemap_ffi/src/find_prefixes.rs... | 7 | 5 | 0 | [{"id": "G0", "claim": "The runenchr helper's implementation was rewritten even though the objective of the change was only to make it static, so the implementation change should be reverted rather than mixed into the move.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
RediSearch__RediSearch__9427 | RediSearch/RediSearch | 9,427 | defect | 1d76e8580c6484b74ce7fe492778258e91a903d4 | 7ce442f5bd4cf811e8a1756ea1580b9904b2b76e | [MOD-6411] Parse FT.CREATE arguments via ArgsCursor instead of up-front argv copy | ## Describe the changes in the pull request
### Bug
`FT.CREATE` crashed the Redis server (segfault from stack overflow) when invoked
with a very large argument list — for example, a schema with ~100K fields
producing ~300K argv tokens.
### Root cause
`IndexSpec_ParseRedisArgs` materialized the entire `Red... | diff --git a/src/spec.c b/src/spec.c
index c0bc77126e4..99022e2f152 100644
--- a/src/spec.c
+++ b/src/spec.c
@@ -324,6 +324,14 @@ arrayof(FieldSpec *) IndexSpec_GetFieldsByMask(const IndexSpec *sp, t_fieldMask
StrongRef IndexSpec_ParseRedisArgs(RedisModuleCtx *ctx, const HiddenString *name,
... | 5 | 2 | 1 | [{"id": "G0", "claim": "The new early return in IndexSpec_ParseRedisArgs leaks the HiddenString *name allocated by IndexSpec_CreateNew, because the failure path bypasses IndexSpec_Parse, which is what otherwise takes ownership of name.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
RediSearch__RediSearch__9434 | RediSearch/RediSearch | 9,434 | defect | afe0d12c3fcd892c00de78068eda538e2d118fc3 | bc36078c3457610673ac69bde517b91e08c5a580 | [2.6] MOD-13118: Add RDB load validations and limits | ## Description
Add validation of limits during RDB load and data creation.
Existing limits that are now verified during RDB load:
- `SPEC_MAX_FIELDS` 1,024
New limits:
- `MAX_SCHEMA_PREFIXES` 1,000,000
- `MAX_SYNONYM_TERMS` 1,000,000
- `MAX_SYNONYM_GROUP_IDS` 4,096
- `MAX_INDEXES` 200,000 (default value, modifiable ... | diff --git a/src/config.h b/src/config.h
index f2aaa38dabd..61c3f043e5a 100644
--- a/src/config.h
+++ b/src/config.h
@@ -203,6 +203,7 @@ void RSConfig_AddToInfo(RedisModuleInfoCtx *ctx);
#define MAX_KNN_K (1ULL << 58)
#define NR_MAX_DEPTH_BALANCE 2
#define DEFAULT_INDEXER_YIELD_EVERY_OPS 1000
+#define DEFAULT_MAX_IN... | 1 | 1 | 1 | [{"id": "G0", "claim": "SynonymMap_Update performs partial modifications (adding some terms successfully) before hitting a limit error, and SynUpdateCommand then returns an error reply without calling RedisModule_ReplicateVerbatim, so the primary retains partial changes that replicas never receive, causing primary-repl... | null |
RediSearch__RediSearch__9435 | RediSearch/RediSearch | 9,435 | defect | 9e6df0783fe9895da706b5ca08d47c029fa615fc | f727aa41b2b56f31552633534eebc9648359e64e | [2.8] MOD-13118: Add RDB load validations and limits | ## Description
Add validation of limits during RDB load and data creation.
Existing limits that are now verified during RDB load:
- `SPEC_MAX_FIELDS` 1,024
New limits:
- `MAX_SCHEMA_PREFIXES` 1,000,000
- `MAX_SYNONYM_TERMS` 1,000,000
- `MAX_SYNONYM_GROUP_IDS` 4,096
- `MAX_INDEXES` 200,000 (default value, modifiable ... | diff --git a/src/aggregate/aggregate_exec.c b/src/aggregate/aggregate_exec.c
index aa57cfaedfa..cf42208d2fd 100644
--- a/src/aggregate/aggregate_exec.c
+++ b/src/aggregate/aggregate_exec.c
@@ -949,7 +949,9 @@ int prepareExecutionPlan(AREQ *req, QueryError *status) {
// check possible optimization after creation of... | 1 | 1 | 1 | [{"id": "G0", "claim": "The MAX_SYNONYM_TERMS check at the top of the SynonymMap_Update loop fires before the dictionary lookup, so when the map already holds MAX_SYNONYM_TERMS entries, an update that adds an existing term to a new group (creating no new term) is incorrectly rejected with SYNONYM_MAP_ERR_MAX_TERMS; the... | null |
RediSearch__RediSearch__9436 | RediSearch/RediSearch | 9,436 | defect | 26efb8c6df4579f70651645024a8021595ddd4b3 | c47808a30a11ce117d1dcc3a3d577824ae3432f5 | [2.10] MOD-13118: Add RDB load validations and limits | ## Description
Add validation of limits during RDB load and data creation.
Existing limits that are now verified during RDB load:
- `SPEC_MAX_FIELDS` 1,024
New limits:
- `MAX_SCHEMA_PREFIXES` 1,000,000
- `MAX_SYNONYM_TERMS` 1,000,000
- `MAX_SYNONYM_GROUP_IDS` 4,096
- `MAX_INDEXES` 200,000 (default value, modifiable ... | diff --git a/src/aggregate/aggregate_exec.c b/src/aggregate/aggregate_exec.c
index 2873dc7225f..404b92e6f56 100644
--- a/src/aggregate/aggregate_exec.c
+++ b/src/aggregate/aggregate_exec.c
@@ -950,7 +950,9 @@ int prepareExecutionPlan(AREQ *req, QueryError *status) {
// check possible optimization after creation of... | 1 | 1 | 1 | [{"id": "G0", "claim": "The MAX_SYNONYM_TERMS check at the top of the loop in SynonymMap_Update fires before checking whether the term already exists, so when the map already holds MAX_SYNONYM_TERMS entries, adding an existing term to a new synonym group is incorrectly rejected with SYNONYM_MAP_ERR_MAX_TERMS even thoug... | null |
RediSearch__RediSearch__9439 | RediSearch/RediSearch | 9,439 | defect | e8316754a87e0bd824009dbe4c2a9be813525fbf | a5d24fd67efb60fbe8b0bf5f978a791ecedcc1dd | [8.6] MOD-13118: Add RDB load validations and limits | ## Description
Add validation of limits during RDB load and data creation.
Existing limits that are now verified during RDB load:
- `SPEC_MAX_FIELDS` 1,024
New limits:
- `MAX_SCHEMA_PREFIXES` 1,000,000
- `MAX_SYNONYM_TERMS` 1,000,000
- `MAX_SYNONYM_GROUP_IDS` 4,096
- `MAX_INDEXES` 200,000 (default value, modifiable ... | diff --git a/src/aggregate/aggregate_exec.c b/src/aggregate/aggregate_exec.c
index e9ebc57961b..1214d5a8f5a 100644
--- a/src/aggregate/aggregate_exec.c
+++ b/src/aggregate/aggregate_exec.c
@@ -966,7 +966,9 @@ int prepareExecutionPlan(AREQ *req, QueryError *status) {
// check possible optimization after creation of... | 1 | 1 | 1 | [{"id": "G0", "claim": "The dictSize(smap->h_table) >= MAX_SYNONYM_TERMS check at the top of the SynonymMap_Update loop makes all FT.SYNUPDATE operations fail once the map reaches exactly MAX_SYNONYM_TERMS entries, even when the update only adds a new group ID to an already-existing term and would not grow the dictiona... | null |
RediSearch__RediSearch__9558 | RediSearch/RediSearch | 9,558 | defect | 8dabcde056d284c439198adfd74d2880936c4f77 | f1920a1834971ca6ad8818876dbebc85b39b912b | [8.6][MOD-6411] Parse FT.CREATE arguments via ArgsCursor instead of up-fro… | Backport 8.6 to #9427
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes the `FT.CREATE` argument parsing path and related prefix/stopword handling, which is core index-creation logic; errors and limits should be revalidated under edge-case inputs.
>
> **Overview**
> Fixes a potential Redis crash whe... | diff --git a/src/obfuscation/hidden_unicode.c b/src/obfuscation/hidden_unicode.c
index 4c81e42fd26..46cfcbd0de8 100644
--- a/src/obfuscation/hidden_unicode.c
+++ b/src/obfuscation/hidden_unicode.c
@@ -13,6 +13,10 @@ HiddenUnicodeString *NewHiddenUnicodeString(const char *name) {
return (HiddenUnicodeString*)sdsnew(n... | 1 | 1 | 1 | [{"id": "G0", "claim": "The MAX_SCHEMA_PREFIXES limit check was removed from the FT.CREATE parsing path when switching to SchemaRule_CreateWithPrefixesAC, creating an inconsistency with the RDB load path: an index could be created with more than 1,000,000 prefixes via the command but would then fail to reload from RDB ... | null |
RediSearch__RediSearch__9571 | RediSearch/RediSearch | 9,571 | defect | d2e5bc52ea75a2d64f3a371f19e08a0cae4c784e | 670d1b823eb6c6e1f97a8fa58a295525377c35d6 | [8.2][MOD-6411] Parse FT.CREATE arguments via ArgsCursor instead of up-fro… | Backport #9427 to 8.2
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes FT.CREATE argument parsing and schema rule/stopword construction paths, which could affect index creation behavior for edge-case inputs. Added bounds checks and tests reduce risk, but parsing regressions are still possible.
>
> *... | diff --git a/src/obfuscation/hidden_unicode.c b/src/obfuscation/hidden_unicode.c
index 4c81e42fd26..46cfcbd0de8 100644
--- a/src/obfuscation/hidden_unicode.c
+++ b/src/obfuscation/hidden_unicode.c
@@ -13,6 +13,10 @@ HiddenUnicodeString *NewHiddenUnicodeString(const char *name) {
return (HiddenUnicodeString*)sdsnew(n... | 1 | 1 | 1 | [{"id": "G0", "claim": "When FT.CREATE specifies PREFIX, IndexSpec_ParseFromArgCursor passes `(const char **)rule_prefixes.objs` - an array of RedisModuleString* pointers from the AC_TYPE_RSTRING cursor - to SchemaRule_Create, which treats them as null-terminated C strings (undefined behavior, likely a crash), and the ... | null |
RediSearch__RediSearch__9578 | RediSearch/RediSearch | 9,578 | defect | c14d5577e49bff895e4c672df4b1246fa4c7775a | 44f95110b137e94423d4befc590344d7a0f6fb31 | [2.10][MOD-6411] Parse FT.CREATE arguments via ArgsCursor instead of up-fro… | Backport #9427 into 2.10
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Touches `FT.CREATE` parsing and schema rule construction, which is core index-creation logic; failures here could change error handling or reject/accept certain edge-case inputs. Change is bounded and covered by new regression tests fo... | diff --git a/src/obfuscation/hidden_unicode.c b/src/obfuscation/hidden_unicode.c
index c9630ddec25..7b16d6c863b 100644
--- a/src/obfuscation/hidden_unicode.c
+++ b/src/obfuscation/hidden_unicode.c
@@ -4,6 +4,10 @@ HiddenUnicodeString *NewHiddenUnicodeString(const char *name) {
return (HiddenUnicodeString*)sdsnew(nam... | 2 | 1 | 0 | [{"id": "G0", "claim": "NewHiddenUnicodeStringWithLen is declared and defined but has zero callers anywhere in the codebase (source, tests, or coord), adding dead code and maintenance burden without functionality.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
RediSearch__RediSearch__9579 | RediSearch/RediSearch | 9,579 | defect | e45aaf4e242de862bbd14e562df1eb46e71a1fee | 19abd6ae55890f8206555cc703dfe3b1add48147 | [2.8][MOD-6411] Parse FT.CREATE arguments via ArgsCursor instead of up-fro… | Backport #9427 into 2.8
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes core `FT.CREATE` argument parsing and stopwords/prefix handling, which could affect index creation and error reporting, but is mostly a refactor to safer parsing with added limits and tests.
>
> **Overview**
> Refactors `FT.CRE... | diff --git a/src/rules.c b/src/rules.c
index a0915bb64eb..3f6c02dba3b 100644
--- a/src/rules.c
+++ b/src/rules.c
@@ -5,12 +5,11 @@
*/
#include "rules.h"
+#include "util/likely.h"
#include "aggregate/expr/expression.h"
#include "aggregate/expr/exprast.h"
#include "json.h"
#include "rdb.h"
-#include "util/likely... | 2 | 2 | 2 | [{"id": "G0", "claim": "StopWordList_AddInternal calls unicode_tolower(t, &slen) with the wrong signature, so a garbage length is passed and the returned byte count is treated as a pointer, causing a segfault whenever a non-empty stopword list is created (including the default list at startup).", "category": "correctne... | null |
RedisAI__redis-inference-optimization__551 | RedisAI/redis-inference-optimization | 551 | defect | 64001dec14100ec06e2b24d40392cde845104caf | 8b650bfc50d757bb18e5a0daf80070cacdb6981d | Refactor DAGRUN command parsing | Cancel the steps for modelget and modelset ops: modelset is done in parsing time, modelget in the reply. | diff --git a/src/DAG/dag.c b/src/DAG/dag.c
index 7ec4c93eb..d9b794180 100644
--- a/src/DAG/dag.c
+++ b/src/DAG/dag.c
@@ -47,52 +47,6 @@
#include "dag_parser.h"
#include "util/string_utils.h"
-/**
- * Execution of a TENSORSET DAG step.
- * If an error occurs, it is recorded in the DagOp struct.
- *
- * @param rinfo ... | 5 | 3 | 1 | [{"id": "G0", "claim": "ReplyWithTensor looks like an auxiliary function for the DAG reply, so it arguably belongs with the DAG reply code rather than declared in tensor.h.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "RAI_FreeDagOp frees the op's argv ar... | null |
RedisAI__redis-inference-optimization__553 | RedisAI/redis-inference-optimization | 553 | defect | 6a389c035885ff76fd5cfbb74d1a6851e5454525 | 525469a60ac4192fbc302e7820f4e1170cb729d2 | Fix memory leaks | - [x] tflite
- [x] torch
- [x] tf
- [x] onnx
- [x] common
- [x] dag
- [x] serializations | diff --git a/src/DAG/dag.c b/src/DAG/dag.c
index 7ec4c93eb..30b0ce8fb 100644
--- a/src/DAG/dag.c
+++ b/src/DAG/dag.c
@@ -223,6 +223,8 @@ void RedisAI_BatchedDagRunSession_ModelRun_Step(RedisAI_RunInfo **batched_rinfo,
if (rinfo->single_op_dag == 0)
Dag_StoreOutputsFromModelRunCtx(rinfo, currentOp)... | 1 | 1 | 1 | [{"id": "G0", "claim": "The ref_count read in the busy-wait loop of RAI_FreeRunInfo should be atomic (the spin on *rinfo->dagRefCount may read stale/non-atomic values).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RedisAI__redis-inference-optimization__582 | RedisAI/redis-inference-optimization | 582 | defect | 7c82c60567fcfc0bdd74651daabb524b943e7045 | 322890a80a5e4bc6ee106f788d0e323e291a5059 | Turn dag local context dict into array | Introduce a shared array in DAG runInfo that stores DAG intermediate tensors (instead of the DagLocalContext dict). Every DAG operation holds the indices of its input and output tensors, and uses this array to load and store them in turn. | diff --git a/opt/readies b/opt/readies
index b300e14f4..0255ad0e7 160000
--- a/opt/readies
+++ b/opt/readies
@@ -1 +1 @@
-Subproject commit b300e14f44c80bf7ca0e74cf60be22720da49e9e
+Subproject commit 0255ad0e769de95d8b8fecad2b88decc9c63f7d1
diff --git a/src/DAG/dag.c b/src/DAG/dag.c
index ad6f84d95..b9e1e2c0a 100644
--... | 4 | 3 | 0 | [{"id": "G0", "claim": "The comment above the LOAD branch in ParseDAGRunCommand should be updated: it still refers to storing tensors in the dagTensorsLoadedContext/dagTensorsContext dicts, which this PR replaced with the shared tensors array.", "category": "documentation", "verdict": "supported", "priority": "P2", "sc... | null |
RedisAI__redis-inference-optimization__710 | RedisAI/redis-inference-optimization | 710 | defect | fda8e304697e52a831cc0003c39980c3b621686c | b5a3d9c908a8c5f290a283df0372ea87ab05e7f8 | LLAPI tests - fix deadlock | - Fix dead-lock in llapi tests: need to acquire and release the lock in the "on-finish" callback to ensure that "on-finish" isn't done before the main-thread has begun waiting.
- Refactor the RunResult_ctx in dag_utils to include the mutex and condition variable instead of having them global.
- Add c-lang formatt... | diff --git a/tests/flow/tests_llapi.py b/tests/flow/tests_llapi.py
index f44bc690e..55677ed75 100644
--- a/tests/flow/tests_llapi.py
+++ b/tests/flow/tests_llapi.py
@@ -101,6 +101,12 @@ def test_dag_build_and_run(env):
ret = con.execute_command("RAI_llapi.DAGrun")
env.assertEqual(ret, b'DAG run success')
+ ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The reviewer asks why LLAPI.c has no run context here — its finish callbacks still synchronize through file-scope global lock/cond (added by this PR) instead of a per-run run context.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
RedisAI__redis-inference-optimization__723 | RedisAI/redis-inference-optimization | 723 | defect | 8a3461f04e954d8432d266b51c3035468e07cf9c | 274b7bfa3af4f2e030eb3b2cf3cf7fe5cb4aed34 | Introduce AI.DAGEXECUTE command, AI.DAGRUN is now deprecated. | Add the new command according to the new design, no actual change in semantics.
The main difference between AI.DAGRUN and AI.DAGEXECUTE is:
1. AI.DAGEXECUTE may contain only (non-deprecated) *EXECUTE ops, while AI.DAGRUN may contain only *RUN (deprecated) ops.
2. AI.DAGEXECUTE has KEYS section (like AI.SCRIPTEXECU... | diff --git a/src/execution/DAG/dag.c b/src/execution/DAG/dag.c
index 377c40f82..68de97a2f 100644
--- a/src/execution/DAG/dag.c
+++ b/src/execution/DAG/dag.c
@@ -668,24 +668,23 @@ int RedisAI_DagRun_Reply(RedisModuleCtx *ctx, RedisModuleString **argv, int argc
return REDISMODULE_OK;
}
-int RedisAI_DagRun_IsKeysP... | 23 | 17 | 1 | [{"id": "G0", "claim": "The notice log logging every verified key's slot, added to VerifyKeyInThisShard, should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'Command syntax error. Unexpected argument: %s' warning logs added bef... | null |
RedisAI__redis-inference-optimization__787 | RedisAI/redis-inference-optimization | 787 | defect | 1fdc22b38a994f6e50287028c9ee44abcf636fab | d57e598a2a48f22102b1baddf05d90c0e1323eff | Run model from script | This PR extends the external commands that torch script already supports through RedisAI (executing unblocking Redis commands), to support the execution of RedisAI models as well by adding a new `redisAI.execute_model` command to torch script. This command receives a model name that is stored in RedisAI, a list of the ... | diff --git a/docs/commands.md b/docs/commands.md
index 3e44edfc8..b63e536bd 100644
--- a/docs/commands.md
+++ b/docs/commands.md
@@ -606,7 +606,7 @@ redis> AI.TENSORGET result{tag} VALUES
```
### Redis Commands support.
-In RedisAI TorchScript now supports simple (non-blocking) Redis commnands via the `redis.execut... | 10 | 10 | 2 | [{"id": "G0", "claim": "The new include of execution/execution_contexts/modelRun_ctx.h in backends.c should be ordered with the other includes (moved to the end), and the author should explain why it is needed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1... | null |
RedisAI__redis-inference-optimization__842 | RedisAI/redis-inference-optimization | 842 | defect | d2565ac7e82175bb7f39f96523d617dfc7823596 | 677a5faffde29776ec5e9656fb2376a8f08c7980 | Documenting string and bool tensor types + validate bool blob | Added documentation + examples for the new tensor types recently added - BOOL and STRING.
Also, added a verification that bool tensor blob contains only valid values (that is 0 or 1), even though every element's size is one byte.
This PR waits for merging string tensor PR https://github.com/RedisAI/RedisAI/pull/832... | diff --git a/docs/commands.md b/docs/commands.md
index c2bd801be..1b13d34a5 100644
--- a/docs/commands.md
+++ b/docs/commands.md
@@ -50,11 +50,38 @@ OK
```
!!! note "Uninitialized Tensor Values"
- As both `BLOB` and `VALUES` are optional arguments, it is possible to use the `AI.TENSORSET` to create an uninitiali... | 3 | 3 | 3 | [{"id": "G0", "claim": "The STRING tensors doc line wrongly says a string element cannot contain a null-character (unless it is the last character of the string) and should instead say elements are utf-8 strings that may or may not be null-terminated, forbidding null only except for a terminating one.", "category": "do... | null |
RedisBloom__RedisBloom__138 | RedisBloom/RedisBloom | 138 | defect | d28e1804987010cbcf663bd564e8cd0c83b51add | 0bdd0741912508cb11d35d51d16778721e3f093c | SubFilter & configurable expansion | Individual sub filters got a struct.
Expansion option allows configuring the ratio at which sub filters will grow. | diff --git a/.gitignore b/.gitignore
index c625fde97..028215011 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,13 @@
*.dSYM
*.rdb
*.pyc
+*.gcov
+*.gcda
+*.gcno
+*.png
+*.html
+*.info
+*.css
tests/test-basic
tests/test-perf
tests/test-cuckoo
diff --git a/docs/Cuckoo_Commands.md b/docs/Cuckoo_Commands.md
index... | 2 | 1 | 0 | [{"id": "G0", "claim": "CuckooFilter_Grow should use filter->numFilters directly instead of taking a redundant pointer to it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "mnunberg questions whether the new largest-filter-first insertion loop i... | null |
RedisBloom__RedisBloom__930 | RedisBloom/RedisBloom | 930 | defect | 39916daa5eecb9bf86a3121e0fd01a14c5072224 | 9d3d1bc535a6022259f469d9bd3f3d1831c647e7 | MOD-11593 Zero buckets in Cuckoo filter | <!-- CURSOR_SUMMARY -->
> [!NOTE]
> Strengthens CuckooFilter integrity checks (null input, expansion rules) and guards CFHeader_Load against zero-bucket subfilters, with new tests covering malformed headers and security cases.
>
> - **Cuckoo core**:
> - **Validation**: `CuckooFilter_ValidateIntegrity` now checks for... | diff --git a/src/cf.c b/src/cf.c
index fdc59e972..c0bf37f3d 100644
--- a/src/cf.c
+++ b/src/cf.c
@@ -139,6 +139,11 @@ CuckooFilter *CFHeader_Load(const CFHeader *header) {
cur->bucketSize = header->bucketSize;
cur->numBuckets = filter->numBuckets * pow(filter->expansion, ii);
+ // Critical se... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the added '// Critical security check: prevent 0-bucket filters that cause crashes' comment above the zero-bucket guard in CFHeader_Load.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
RedisGraph__RedisGraph__1160 | RedisGraph/RedisGraph | 1,160 | defect | 65138849b288cc3121de2e2a7b459a219521e14a | d1e0edd71c218c54cfb47a8d725a45cae0b136be | removed RedisModule_ReplyWithError from ast validations | closes #1155 | diff --git a/src/ast/ast.c b/src/ast/ast.c
index 5a66003834..85ecfbfba8 100644
--- a/src/ast/ast.c
+++ b/src/ast/ast.c
@@ -534,7 +534,7 @@ uint64_t AST_GetSkip(const AST *ast) {
cypher_parse_result_t *parse_query(const char *query) {
cypher_parse_result_t *result = cypher_parse(query, NULL, NULL, CYPHER_PARSE_ONLY_S... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rather than threading a `char **err`/reason out-parameter through the validation functions up to AST_Validate_Query and calling QueryCtx_SetError there, the error should be written into the query context via QueryCtx_SetError wherever the error is detected.", "category": "design", "verdict": "su... | null |
RedisGraph__RedisGraph__1165 | RedisGraph/RedisGraph | 1,165 | defect | 65799b9bed603583faba46246c3cdde8a1eab4f5 | ec1192ad2c3617e855865fc9056f48c5325a0754 | Resolve race in accessing/updating attribute maps | This PR adds race condition handling for the attribute mappings, solving any potential issues in our stress test and in general.
It must accommodate a few cases:
- Trying to look up an attribute from a reader query, such as the inner `_AR_EXP_UpdatePropIdx` call in `MATCH (x) RETURN x.name`.
- Adding a new attribu... | diff --git a/src/ast/ast_build_op_contexts.c b/src/ast/ast_build_op_contexts.c
index f4b5d90108..da0e528492 100644
--- a/src/ast/ast_build_op_contexts.c
+++ b/src/ast/ast_build_op_contexts.c
@@ -115,7 +115,7 @@ void AST_PrepareSortOp(const cypher_astnode_t *order_clause, int **sort_directio
directions = array_append... | 9 | 7 | 3 | [{"id": "G0", "claim": "Revert the move of `locked_for_commit = true` so the flag is set only after the graph write lock is acquired, since it indicates the graph is locked and safe to modify.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Simplify ... | null |
RedisGraph__RedisGraph__1184 | RedisGraph/RedisGraph | 1,184 | defect | 66fd60fa7aef8e25d4d92df6170cdf48ef4f3260 | 725c5ab728c1d162cbb9ab8d756585746e845b47 | added explain and profile options as invalid options in redisgraph | `EXPLAIN` and `PROFILE` are cypher query execution options. In RedisGraph we have them as explicit commands.
This PR invalidate a query sent with those options as invalid query and prompts the user to use the explicit command
```
127.0.0.1:6379> graph.query g "EXPLAIN MATCH (p:president)-[:born]->(:state {name:'H... | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index 768cb00d44..ae321aebcb 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -1468,6 +1468,14 @@ static AST_Validation _ValidateDuplicateParameters(const cypher_astnode_t *state
uint noptions = cypher_ast_statement_noptions(s... | 2 | 2 | 0 | [{"id": "G0", "claim": "The tests for invalid EXPLAIN/PROFILE cypher options do not belong in tests/flow/test_params.py and should be moved to the query error/validation test file.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The EXPLAIN/PROFILE option... | null |
RedisGraph__RedisGraph__1250 | RedisGraph/RedisGraph | 1,250 | defect | e7121933c4d137783680ae5991426d82a40551b1 | cf4c9ce92a31ab97653bc03e70c451ee4446aee0 | Improve label logic | Addresses #1248 and #1249 with respect to nodes.
Removes redundant lookups of node label data in the ResultSet formatters and OpUpdate, populates label data when possible in Scan and Traverse operations. | diff --git a/src/algorithms/all_paths.c b/src/algorithms/all_paths.c
index 664f1bd77e..66bc92a8ec 100644
--- a/src/algorithms/all_paths.c
+++ b/src/algorithms/all_paths.c
@@ -43,7 +43,7 @@ static void _addNeighbors(AllPathsCtx *ctx, LevelConnection *frontier, uint32_t
// Don't follow the frontier edge again.
if(f... | 26 | 16 | 4 | [{"id": "G0", "claim": "Asks why the pull request added the `pdata->n = Node_New()` allocation in the fulltext query procedure.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `mat` member of Node was not in use and is dead code.", "category": "m... | null |
RedisGraph__RedisGraph__1277 | RedisGraph/RedisGraph | 1,277 | defect | dc090dd33166a828d20469b90a082b7148555034 | 9a6b4f03dcaa00ad51c1dc95048067bec7db2733 | Any all comprehensions | Resolves #1059 | diff --git a/docs/commands.md b/docs/commands.md
index 4bf863ce22..38ef1c4ccd 100644
--- a/docs/commands.md
+++ b/docs/commands.md
@@ -580,9 +580,11 @@ This section contains information on all supported functions from the Cypher que
## Predicate functions
-|Function | Description|
-| ------- |:-----------|
-|exist... | 1 | 1 | 1 | [{"id": "G0", "claim": "Treating CYPHER_AST_LIST_COMPREHENSION as a filter operator is wrong because a bare list comprehension evaluates to an array, not a boolean, so a query like 'WITH 1 AS x WHERE [a IN [1,2,3] WHERE a = 5] RETURN x' incorrectly returns x where Neo4j returns an empty result-set.", "category": "corre... | null |
RedisGraph__RedisGraph__1306 | RedisGraph/RedisGraph | 1,306 | defect | 6dbaad6d445c83fa1f356307b9bc17805a3e6844 | 43ff46eb160a081d195587b7b92fc2626ba8745e | Bfs procedure call | This PR introduces two new procedure calls, `algo.BFS` and `algo.BFSTree`.
Each accepts a source node, an optional maximum level to visit, and an optional relationship type to traverse.
They differ in that `algo.BFS` only returns each connected node and its level relative to the source, while `algo.BFSTree` also ... | diff --git a/docs/commands.md b/docs/commands.md
index 4a6b2b3ab3..de608f8088 100644
--- a/docs/commands.md
+++ b/docs/commands.md
@@ -704,15 +704,17 @@ GRAPH.QUERY social "CALL db.labels() YIELD label"
YIELD modifiers are only required if explicitly specified; by default the value in the 'Yields' column will be emi... | 11 | 10 | 1 | [{"id": "G0", "claim": "Remove the commented-out code left in Proc_BFS_Invoke of src/procedures/proc_bfs.c.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the inline pdata/context initialization out of the Invoke functions into a dedicated ... | null |
RedisGraph__RedisGraph__132 | RedisGraph/RedisGraph | 132 | defect | 1655779dc3b786d777d47159bc6652ffa7adb60c | 55b3bcc1190d58aa50079f13e1e1c25e859be163 | Improve handling of unlabeled node bulk insertion | This PR resolves a few bugs surrounding the handling of unlabeled nodes.
The `AllStore` schema is now updated to accurately describe the properties of unlabeled nodes during bulk inserts, so that a proper result set can be formed from a query like `MATCH (a) RETURN a`.
Unlabeled nodes are not required to have att... | diff --git a/src/bulk_insert/bulk_insert.c b/src/bulk_insert/bulk_insert.c
index becbb63f73..d3d31d48ef 100644
--- a/src/bulk_insert/bulk_insert.c
+++ b/src/bulk_insert/bulk_insert.c
@@ -144,6 +144,12 @@ RedisModuleString** _Bulk_Insert_Read_Unlabeled_Node_Attributes(RedisModuleCtx *
return argv;
}
+void _Bulk_... | 4 | 3 | 0 | [{"id": "G0", "claim": "Instead of calling LabelStore_Get for every unlabeled node via the _Bulk_Insert_AllStoreUpdate helper, hold a reference to the AllStore and call LabelStore_UpdateSchema directly here.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla... | null |
RedisGraph__RedisGraph__1330 | RedisGraph/RedisGraph | 1,330 | defect | 8a417cb392592898bb3633f46a80f1adc31409ef | b3df94402376eb9fcbb71656a248fbf2a70c0c40 | added leading comments for a query | This PR adds support for parsing results with multiple nodes. Closes #1329
This exposes a bug in libcypher-parser:
For the query
```
/* hum */ MATCH (:Test) // hum
RETURN true // oi
```
The parsing result is (see last identifier)
```
@0 2..7 block_comment /* hum */
@1 10..49 statement ... | diff --git a/src/ast/ast.c b/src/ast/ast.c
index c45037cd91..bfeb54d54c 100644
--- a/src/ast/ast.c
+++ b/src/ast/ast.c
@@ -91,12 +91,27 @@ static void _AST_LimitResults(AST *ast, const cypher_astnode_t *root_clause,
}
}
+static const cypher_astnode_t *_AST_parse_result_root(const cypher_parse_result_t *parse_resul... | 4 | 4 | 0 | [{"id": "G0", "claim": "The comment \"This should be unnecessary, as we're currently parsing with the CYPHER_PARSE_ONLY_STATEMENTS flag.\" should be deleted, since this code can also be reached while parsing parameters.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
RedisGraph__RedisGraph__1377 | RedisGraph/RedisGraph | 1,377 | defect | d0ec0756b8e499d257a176fe917b6377b7da1670 | fd2ab903a74bb87b1bbb6aaacfe6c21cba02a1ac | Adding a new procedure that returns all the procedures in the system | This procedure may yield up to two fields for each procedure: its name and/or its mode (READ/WRITE).
#1376 | diff --git a/src/procedures/proc_procedures.c b/src/procedures/proc_procedures.c
new file mode 100644
index 0000000000..856c8d5f8e
--- /dev/null
+++ b/src/procedures/proc_procedures.c
@@ -0,0 +1,89 @@
+/*
+* Copyright 2018-2020 Redis Labs Ltd. and Contributors
+*
+* This file is available under the Redis Labs Source Av... | 25 | 22 | 1 | [{"id": "G0", "claim": "The include statements in the new proc_procedures.c should be ordered according to line length.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The struct field comments should be aligned four spaces from the longest line ... | null |
RedisGraph__RedisGraph__1382 | RedisGraph/RedisGraph | 1,382 | defect | cd97f6cddbf6ede47c93fe1d03c1210f8c0923e1 | 988b1e84ddbc628a9e27a4af9474e392b2c60e10 | Graph version | This PR will continue to fail as long as the new version of RedisGraph-py isn't deployed.
We introduce a `Graph Version` which "signs" the graph schema: (labels, relationship-types and attribute-set)
on each change to the graph "schema" the version is updated, client libraries taking advantage of the compact result-s... | diff --git a/src/graph/graphcontext.c b/src/graph/graphcontext.c
index cd4e7ac5a8..c1fcb3e934 100644
--- a/src/graph/graphcontext.c
+++ b/src/graph/graphcontext.c
@@ -7,7 +7,9 @@
#include <sys/param.h>
#include <pthread.h>
#include "graphcontext.h"
+#include "../RG.h"
#include "../util/arr.h"
+#include "../util/uui... | 3 | 1 | 0 | [{"id": "G0", "claim": "When testing locally with the graph-version redisgraph-py branch, 8 queries that should have been cached executions report that they were uncached.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G5", "claim": "The added UNUSED(res) line at ... | null |
RedisGraph__RedisGraph__1388 | RedisGraph/RedisGraph | 1,388 | defect | f2de97a452e0096ac40abaae74921de39bf09144 | f47d2e5919febf84bb81ae8ae9d9f89c7d1b649d | Node creation buffer | Add an opt-out node creation buffer capable of accommodating 100 new nodes or 0.1% of the total node count, whichever is greater. | diff --git a/src/config.c b/src/config.c
index ac03522f0a..d37bc5aef9 100644
--- a/src/config.c
+++ b/src/config.c
@@ -14,6 +14,8 @@
#define CACHE_SIZE "CACHE_SIZE" // Config param, the size of each thread cache size, per graph.
#define THREAD_COUNT "THREAD_COUNT" // Config param, number of threads in thread pool
#... | 15 | 10 | 3 | [{"id": "G0", "claim": "The log comment added by the PR should read 'Log the virtual key entity threshold.' instead of 'Log the new entity threshold.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hard-coded minimum buffer size 100 in _Graph... | null |
RedisGraph__RedisGraph__1393 | RedisGraph/RedisGraph | 1,393 | defect | 40eccc57cd4708d7116c576130b15034437690db | e53f568351bb8d6933e9e2e323d609a2a2389be0 | Replace cache per thread with global cache | #1392
Replace ExecutionCtx cache from cache per thread with a global cache:
-Use rwlock to synchronize access to the cache.
-Replace the hash lookup of queries strings with rax to support safe access of multiple readers.
-When cache hit occurs, do (shallow) memcpy of the query AST along with reference count increas... | diff --git a/src/ast/ast.c b/src/ast/ast.c
index 85a34e8211..ca2f51a4d1 100644
--- a/src/ast/ast.c
+++ b/src/ast/ast.c
@@ -90,12 +90,12 @@ static void _AST_Extract_Params(const cypher_parse_result_t *parse_result) {
static void AST_IncreaseRefCount(AST *ast) {
ASSERT(ast);
- __atomic_fetch_add(&ast->ref_count, 1, ... | 2 | 2 | 2 | [{"id": "G0", "claim": "Clang rejects the stdatomic calls in Cache_GetValue and Cache_SetValue with \"address argument to atomic operation must be a pointer to _Atomic type ('ulong *' invalid)\", so the cache code fails to compile there.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
RedisGraph__RedisGraph__1406 | RedisGraph/RedisGraph | 1,406 | defect | f9c030be289ae934ac0958c75820663329b6eb64 | 3a7a0a07bf83f56b091c2206a2270c70b56edad7 | query validation should not check if procedure outputs been defined | #1405
When performing query validations, we shouldn't treat procedure outputs as elements that need to be defined
Moreover there should be a follow-up PR that validates that procedure outputs haven't been previously defined, e.g.
`WITH 1 AS node CALL db.idx.fulltext.queryNodes('Movie', 'Book') YIELD node RETURN ... | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index ac04b237da..e3b1989e1c 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -5,15 +5,15 @@
*/
#include "ast.h"
+#include "../RG.h"
#include "ast_shared.h"
#include "../util/arr.h"
+#include "../query_ctx.h"
#include "c... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new CALL handling block in _AST_GetIdentifiers should be moved to sit immediately after the type extraction line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment on the CALL block should be rephrased to say... | null |
RedisGraph__RedisGraph__1429 | RedisGraph/RedisGraph | 1,429 | defect | d747f2f57f9199b3b8f3c6fcebc8193690a6518a | c931b0eb0f52977f03afe0e103e3bfef601ab1f4 | Fuzzy test crashes 2 | Refactor FilterTree conversion/validation logic, introducing compile-time errors for #1410 and other offending queries like:
```
MATCH (a) WHERE NOT NOT "" RETURN *
MATCH (u) where u.v NOT NULL RETURN u
```
Adds validation to ensure that the number of UNION clauses match the number of RETURN clauses, solving cra... | diff --git a/src/arithmetic/arithmetic_expression.c b/src/arithmetic/arithmetic_expression.c
index 0c9264ab0f..5c24a6edf4 100644
--- a/src/arithmetic/arithmetic_expression.c
+++ b/src/arithmetic/arithmetic_expression.c
@@ -145,7 +145,7 @@ AR_ExpNode *AR_EXP_NewVariableOperandNode(const char *alias) {
}
AR_ExpNode *... | 6 | 4 | 2 | [{"id": "G0", "claim": "There is no test covering the new FilterTree_Valid error branches added by this PR (the semi-empty predicate case at filter_tree.c:426 and the empty condition case at filter_tree.c:435), and the reviewer asks whether one exists.", "category": "testing", "verdict": "uncertain", "priority": "P2", ... | null |
RedisGraph__RedisGraph__1431 | RedisGraph/RedisGraph | 1,431 | defect | ebfc507809d2d661f90004785b467c39f7a66ce2 | 5ea2f39f564456962475f00003a8bb5026e67d4d | Disallow traversal patterns outside of the appropriate clauses | Cypher allows traversal patterns to appear in a number of unexpected places, such as:
```
MATCH (a) RETURN (a)-[]->()
MATCH (a) RETURN a ORDER BY (a)-[]->()
MATCH (a {prop: ()-[]->()}) RETURN a
```
These constructions don't seem useful to me, and they often cause crashes because QueryGraph construction collects a... | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index 093052cbf5..98d178ae4a 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -299,6 +299,36 @@ static AST_Validation _ValidateFunctionCalls(const cypher_astnode_t *node,
return res;
}
+static AST_Validation _Validate_Path_... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new test30_unexpected_traversals should be restructured to loop over a list of the three queries instead of repeating three try/except blocks.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining what the _... | null |
RedisGraph__RedisGraph__144 | RedisGraph/RedisGraph | 144 | defect | d26ff941537d47be7653b5f879c60a8a1ced3316 | 4e941638005952701ad1b6f7d5451905f0b1e3f5 | Fix leaks in memory scoped to individual queries | These are all pretty straightforward fixes to leaks I observed when comparing Valgrind results from sessions that issued single versus repeated queries. | diff --git a/src/execution_plan/execution_plan.c b/src/execution_plan/execution_plan.c
index b6f1a6054c..62e859e4cc 100644
--- a/src/execution_plan/execution_plan.c
+++ b/src/execution_plan/execution_plan.c
@@ -447,12 +447,11 @@ ExecutionPlan* NewExecutionPlan(RedisModuleCtx *ctx, Graph *g,
free(ref);
... | 1 | 1 | 0 | [{"id": "G0", "claim": "There should be a single way of creating a QueryGraph object, so the two creation functions should be merged into one function accepting both node_cap and edge_cap.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
RedisGraph__RedisGraph__1442 | RedisGraph/RedisGraph | 1,442 | defect | 0f534477bb986a7f3a459ee33647e92ed2a207ad | e3ffbb86e5ec90d38da30eb2d1e1ab6017a9b216 | Disallow MERGE of entities with null properties | Add appropriate restriction to MERGE creations and exit early on encountering invalid property errors. | diff --git a/src/execution_plan/ops/op_merge_create.c b/src/execution_plan/ops/op_merge_create.c
index ba3ed83b47..5d7b28d46c 100644
--- a/src/execution_plan/ops/op_merge_create.c
+++ b/src/execution_plan/ops/op_merge_create.c
@@ -102,7 +102,16 @@ static bool _CreateEntities(OpMergeCreate *op, Record r) {
/* Convert... | 3 | 3 | 1 | [{"id": "G0", "claim": "The block in ConvertPropertyMap that handles invalid property values should be covered by a test for the CREATE path, as only the MERGE path is shown to be covered.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "QueryCtx_RaiseRun... | null |
RedisGraph__RedisGraph__1480 | RedisGraph/RedisGraph | 1,480 | defect | ce651b287ff41d2c9d72c2d2e099a0a382c5a91c | a2a5041d05d0c8e077018f1f54ccf7b9213bc9fa | configure resultset size limit | Allow for result-set size limit to be configured, default is unlimited. | diff --git a/docs/commands.md b/docs/commands.md
index e49d63a331..23765d11c2 100644
--- a/docs/commands.md
+++ b/docs/commands.md
@@ -908,3 +908,16 @@ GRAPH.SLOWLOG graph_id
3) "MATCH (me:Person)-[:FRIEND]->(:Person)-[:FRIEND]->(fof:Person) RETURN fof.name"
4) "0.288"
```
+
+## GRAPH.CONFIG
+Retrieves or up... | 9 | 9 | 3 | [{"id": "G0", "claim": "The reviewer asks why the pull request deleted the explanatory comments on the configuration-parameter #define lines (CACHE_SIZE, THREAD_COUNT, OMP_THREAD_COUNT, VKEY_MAX_ENTITY_COUNT, MAINTAIN_TRANSPOSED_MATRICES).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope"... | null |
RedisGraph__RedisGraph__1504 | RedisGraph/RedisGraph | 1,504 | defect | 818e541f88910e818ca4ba5085f27ad077a70eac | b8eb1c29ab5a98ae595e7e16a356081be02ebd09 | Fixes for zero-length traversals | This PR fixes 2 misbehaviors:
The query:
```
MATCH (a)-[]-(:L{})<-[*0]-(b:L) RETURN a
```
Caused the server to crash.
The above query produced a different execution plan than the logically equivalent variant:
```
MATCH (a)-[]-(:L)<-[*0]-(b:L) RETURN a
```
(The second query does not have the empty property... | diff --git a/src/arithmetic/algebraic_expression/algebraic_expression.c b/src/arithmetic/algebraic_expression/algebraic_expression.c
index d0f8f1f15f..0e2ba627f8 100644
--- a/src/arithmetic/algebraic_expression/algebraic_expression.c
+++ b/src/arithmetic/algebraic_expression/algebraic_expression.c
@@ -352,7 +352,10 @@ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The modified while loop condition in AlgebraicExpression_RemoveSource should be reverted to the original simple `while(current->type == AL_OPERATION)` form, which is straightforward and easy to reason about.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int... | null |
RedisGraph__RedisGraph__1572 | RedisGraph/RedisGraph | 1,572 | defect | 250f16e46cc775da55b28e5213adc5ba0ca0f759 | f63c0e4df24f5da5e1af282463d6f10f4b1e1c55 | Use file streaming endpoint to parse queries | Resolves erroneous query rejections due to buffer overflows.
#760 #1486 | diff --git a/src/Makefile b/src/Makefile
index 24f9f3957d..e1c147a0c0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -161,7 +161,7 @@ ifeq (,$(wildcard $(LIBCYPHER-PARSER)))
cd ../deps/libcypher-parser; \
sh ./autogen.sh; \
./configure --disable-shared;
- $(MAKE) CFLAGS="-O3 -fPIC -DYY_BUFFER_SIZE=1048576" clean... | 1 | 1 | 0 | [{"id": "G0", "claim": "Build the query with a plain single-quoted \"RETURN \" literal instead of the triple-quoted \"\"\"RETURN \"\"\" form.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RedisGraph__RedisGraph__1650 | RedisGraph/RedisGraph | 1,650 | defect | 4fa2c1b35b4f961440fd636401b2faff743d694e | e664d02540d55b478d838693562d40b6b4566677 | Fix memory leak on allocated keys in OpAggregate | Resolves a memory leak when the key to an aggregate expression is heap-allocated, as in `STR1` and `STR2` in:
```
UNWIND ['str1', 'str1', 'str2', 'str1'] AS key UNWIND [1, 2, 3] as agg RETURN toUpper(key) AS key, collect(DISTINCT agg)
``` | diff --git a/src/arithmetic/arithmetic_expression_construct.c b/src/arithmetic/arithmetic_expression_construct.c
index ae9aaa514e..d1ff4991b6 100644
--- a/src/arithmetic/arithmetic_expression_construct.c
+++ b/src/arithmetic/arithmetic_expression_construct.c
@@ -355,7 +355,10 @@ static AR_ExpNode *_AR_ExpFromMapProject... | 4 | 2 | 0 | [{"id": "G0", "claim": "The PR's new test expects `RETURN 5 {v: 'b'}` to error although cypher-lint parses it as valid Cypher, so the reviewer questions whether erroring on it is intended.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "SIArray should pro... | null |
RedisGraph__RedisGraph__1657 | RedisGraph/RedisGraph | 1,657 | defect | 096373dc7ba48e126c43dff1bf2f6883dc505b30 | 945224db868e15e4e4c076538d1e9238b7d8a478 | Support filtering on variable-length edges in traversals | This PR introduces support for filtering on edges in variable-length traversals, as in:
```
MATCH (a)-[* {weight: 2}]->(b) RETURN a, b
```
`WHERE` constructions are also supported:
```
MATCH (a)-[e*]->b) WHERE e.weight > 0 AND e.weight < 3 RETURN a, b
```
Though this form is excluded in Neo4j, in which `WHERE` ... | diff --git a/src/algorithms/all_paths.c b/src/algorithms/all_paths.c
index 2e360f877a..d693a88079 100644
--- a/src/algorithms/all_paths.c
+++ b/src/algorithms/all_paths.c
@@ -1,5 +1,5 @@
/*
-* Copyright 2018-2020 Redis Labs Ltd. and Contributors
+* Copyright 2018-2021 Redis Labs Ltd. and Contributors
*
* This file i... | 7 | 5 | 2 | [{"id": "G0", "claim": "The comment in optimizer.c describing the optimization sequence should be updated/extended now that the new variable-length edge filtering optimization is part of it.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Header fi... | null |
RedisGraph__RedisGraph__1702 | RedisGraph/RedisGraph | 1,702 | defect | 7c4ec166362fcd1b6962d249c35e5a96f906b3b3 | ac3cccd2a3e014ac88c8371f0259b4ad0879ede1 | set graph sync policy to resize only | when performing bulk insert, make sure graph sync policy is set to resize only | diff --git a/src/bulk_insert/bulk_insert.c b/src/bulk_insert/bulk_insert.c
index 9f24da30b1..8b5c85f08f 100644
--- a/src/bulk_insert/bulk_insert.c
+++ b/src/bulk_insert/bulk_insert.c
@@ -201,8 +201,8 @@ static int _BulkInsert_ProcessTokens(GraphContext *gc, int token_count,
int BulkInsert(RedisModuleCtx *ctx, GraphCon... | 1 | 1 | 1 | [{"id": "G0", "claim": "At the end of the BulkInsert function, the graph sync policy set to RESIZE_TO_CAPACITY should be reverted with Graph_SetMatrixPolicy(g, SYNC_AND_MINIMIZE_SPACE), otherwise the bulk insert may finish and leave the graph with the non-standard policy.", "category": "correctness", "verdict": "suppor... | null |
RedisGraph__RedisGraph__1888 | RedisGraph/RedisGraph | 1,888 | defect | fc678ea53596b34f677f45f50735fe03752d2433 | 6ae257e739b4185159cc9507ca7dd0641b61f78e | Synchronize matrices on creation in RDB load | This PR resolves an assertion failure when loading a graph with edge endpoint IDs greater than 16,384 in debug mode.
The specific error is a `GRB_INVALID_INDEX` on https://github.com/RedisGraph/RedisGraph/blob/master/src/serializers/graph_extensions.c#L67 | diff --git a/src/serializers/decoders/current/v9/decode_graph.c b/src/serializers/decoders/current/v9/decode_graph.c
index 81bdd8a010..6beb835142 100644
--- a/src/serializers/decoders/current/v9/decode_graph.c
+++ b/src/serializers/decoders/current/v9/decode_graph.c
@@ -36,6 +36,8 @@ static void _InitGraphDataStructure... | 1 | 1 | 1 | [{"id": "G0", "claim": "The matrix-synchronization changes made to the v9 decoder (flushing matrices in _InitGraphDataStructure and the SYNC_POLICY_NOP handling in the RDB-load switch) need to be applied to the previous decoders (v7 and v8) as well.", "category": "correctness", "verdict": "supported", "priority": "P1",... | null |
RedisGraph__RedisGraph__1897 | RedisGraph/RedisGraph | 1,897 | defect | 46fabda23c4c109fb4e7cdac9552a97ff1e51dba | b6867acfaead99879608c00bde717335b575a2d3 | Aliases in WITH...ORDER BY must be valid references | This PR causes invalid references in a WITH...ORDER BY clause to be captured as compile-time errors rather than run-time errors, as in:
```
UNWIND [1,2,3] AS a WITH a ORDER BY nonexistent RETURN a
```
This has the effect of resolving #1863. A more concise query exhibiting the crash in this issue is:
```
CREATE ... | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index bff1f441f9..744558149c 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -75,10 +75,10 @@ static void _AST_GetIdentifiers(const cypher_astnode_t *node, rax *identifiers)
_AST_GetIdentifiers(child, identifiers);
}
- i... | 2 | 2 | 2 | [{"id": "G0", "claim": "The same ORDER BY alias validation added for WITH should be applied to the RETURN clause as well.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "test11 should also cover the valid alias case, a mixture of valid and invalid al... | null |
RedisGraph__RedisGraph__1933 | RedisGraph/RedisGraph | 1,933 | defect | 1f66e01efa1ddf0104d7b7036ad004ccb5da7d67 | 43bb86abb607d1b86a527831b4e933860e668644 | Free thread-local data on graph deletion | A `QueryCtx` struct can be instantiated by certain `OpFree` routines, such as the `QueryCtx_UnlockCommit` call at https://github.com/RedisGraph/RedisGraph/blob/master/src/execution_plan/ops/op_delete.c#L58. To avoid memory leaks, we should call `QueryCtx_Free` as part of the `GraphContext_Free` routine. | diff --git a/src/graph/graphcontext.c b/src/graph/graphcontext.c
index 6d0f0bd772..18966afe28 100644
--- a/src/graph/graphcontext.c
+++ b/src/graph/graphcontext.c
@@ -359,12 +359,12 @@ bool GraphContext_HasIndices(GraphContext *gc) {
return false;
}
Index *GraphContext_GetIndexByID(const GraphContext *gc, int id,
-... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reviewer asks the author to describe the complete flow that leads to a leaked QueryCtx when _GraphContext_Free calls QueryCtx_Free.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of freeing an edge-case QueryCtx... | null |
RedisGraph__RedisGraph__1945 | RedisGraph/RedisGraph | 1,945 | defect | 1e8fd9b5053f01b62e5348ad8b27aca80904f160 | 0c943bb9131c9ec00e2c74e36928df6205a95793 | Track node count per label in graph statistics | This PR augments the `GraphStatistics` struct to track node count per label, mirroring the logic that tracks edge count per relationship type. | diff --git a/src/graph/graph.c b/src/graph/graph.c
index c81378d53e..7bdc5aa21c 100644
--- a/src/graph/graph.c
+++ b/src/graph/graph.c
@@ -396,16 +396,12 @@ size_t Graph_UncompactedNodeCount(const Graph *g) {
return Graph_NodeCount(g) + Graph_DeletedNodeCount(g);
}
-size_t Graph_LabeledNodeCount
+uint64_t Graph_La... | 6 | 5 | 3 | [{"id": "G0", "claim": "Add the same assertion for node count next to the existing edge-count assertions at the start of the GraphStatistics test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test that node count statistics are updated when a no... | null |
RedisGraph__RedisGraph__1963 | RedisGraph/RedisGraph | 1,963 | defect | 69973de425095b506738c10718129ab4494641c8 | d83e3550894358cbfb24fe1683fce220054fbb33 | implement has labels | instead of https://github.com/RedisGraph/RedisGraph/pull/1179 | diff --git a/src/arithmetic/arithmetic_expression_construct.c b/src/arithmetic/arithmetic_expression_construct.c
index 2a0644f8e3..a2ac0c2a7e 100644
--- a/src/arithmetic/arithmetic_expression_construct.c
+++ b/src/arithmetic/arithmetic_expression_construct.c
@@ -10,6 +10,7 @@
#include "../errors.h"
#include "../query... | 13 | 11 | 8 | [{"id": "G0", "claim": "The un-skipped scenario line in MatchWhere1.feature is malformed: it starts with '= Scenario:' instead of a plain ' Scenario:' line.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment above AR_HAS_LABELS reads 'returns ... | null |
RedisGraph__RedisGraph__1972 | RedisGraph/RedisGraph | 1,972 | defect | 5100b7f2b2318bcf254e5c729d21625c5fb67c67 | 611ce0ebf7f45febd2a60d0f92cf97f970497925 | Edge indexing | New feature to index edges
New create index syntax
```
CREATE INDEX FOR (n:L) ON (n.prop) // for node
CREATE INDEX FOR ()-[r:R]-() ON (r.prop) // for edge
```
New plan operation
```
GRAPH.EXPLAIN x "MATCH ()-[r:R]->() WHERE r.prop > 100 RETURN r"
1) "Results"
2) " Project"
3) " Edge By Index Sc... | diff --git a/deps/libcypher-parser b/deps/libcypher-parser
index 24360ab84e..38cdee1867 160000
--- a/deps/libcypher-parser
+++ b/deps/libcypher-parser
@@ -1 +1 @@
-Subproject commit 24360ab84e2012bc310bf9b0d68c624a860fbb50
+Subproject commit 38cdee1867b18644616292c77fe2ac1f2b179537
diff --git a/docs/commands.md b/docs/... | 16 | 16 | 3 | [{"id": "G0", "claim": "In the index-drop path of cmd_query.c the schema-type default is reversed and should be node by default with edge as the fallback.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR's changed drop-index behaviour is untest... | null |
RedisGraph__RedisGraph__2076 | RedisGraph/RedisGraph | 2,076 | defect | 7d550c7400e5839edec91cb22d1ef925c791f18a | af36b5d9463d53a981398c026a5d2e223920ab85 | support xor op in filter tree | fixes https://github.com/RedisGraph/RedisGraph/issues/2066
need to talk about negate xor | diff --git a/src/arithmetic/arithmetic_expression_construct.c b/src/arithmetic/arithmetic_expression_construct.c
index 6d8814e315..98111f22fb 100644
--- a/src/arithmetic/arithmetic_expression_construct.c
+++ b/src/arithmetic/arithmetic_expression_construct.c
@@ -43,12 +43,12 @@ static bool _AR_EXP_ContainsNestedAgg(con... | 6 | 5 | 3 | [{"id": "G0", "claim": "The test method name `test01_filter` is too general and should be renamed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Each of the test's Cypher queries should have a comment explaining what it tests.", "category": "ma... | null |
RedisGraph__RedisGraph__2102 | RedisGraph/RedisGraph | 2,102 | defect | 65c1621dcdd295d375b4acd122a1ed37ace1d592 | 0fd3ad1665edc05ee77c2aad9db2cc1d8a83bb7a | Add load-time configuration to resize the node creation buffer | This PR adds the load-time configuration `NODE_CREATION_BUFFER` to allow users to modify the amount of empty space is reserved in matrices for future node creations. | diff --git a/docs/configuration.md b/docs/configuration.md
index 2074943ada..a05d2f5471 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -124,6 +124,28 @@ $ redis-server --loadmodule ./redisgraph.so QUERY_MEM_CAPACITY 1048576 // 1 mega
$ redis-cli GRAPH.CONFIG SET QUERY_MEM_CAPACITY 1048576
```
+--... | 5 | 2 | 1 | [{"id": "G0", "claim": "Asks why the Graph_AllocateNodes(g, node_count) call was added to the test fixture's node-creation setup.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rework the design so the configured value becomes the node datablock's block... | null |
RedisGraph__RedisGraph__2105 | RedisGraph/RedisGraph | 2,105 | defect | 65c1621dcdd295d375b4acd122a1ed37ace1d592 | d8cfc8589bcdd1e7d93b02f8451f6fdbc6b31d50 | fix create node with multiple properties same name | fixes https://github.com/RedisGraph/RedisGraph/issues/573 | diff --git a/src/graph/entities/graph_entity.c b/src/graph/entities/graph_entity.c
index f4bc83e2df..1b21bb41e8 100644
--- a/src/graph/entities/graph_entity.c
+++ b/src/graph/entities/graph_entity.c
@@ -71,6 +71,12 @@ bool GraphEntity_AddProperty(GraphEntity *e, Attribute_ID attr_id, SIValue value
ASSERT(e);
if(!(S... | 3 | 3 | 1 | [{"id": "G0", "claim": "A short comment should be added explaining the new test for creating a node with two attributes of the same name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the extra space in `SIValue *property_value = GraphEnt... | null |
RedisGraph__RedisGraph__2147 | RedisGraph/RedisGraph | 2,147 | defect | 14522a62f7e301f2e2601ee8be918f9eaf92dec8 | 035b20639f1d762565bd3f03ba30404589aba902 | Test ast star replacement | This PR introduces the rewriting of an AST to replace `WITH/RETURN *` clauses with fully-populated variants, allowing us to delete the annotation logic that previously handled this.
It is currently pointing to a branch commit of `libcypher-parser` (https://github.com/RedisGraph/libcypher-parser/pull/11), which shoul... | diff --git a/deps/libcypher-parser b/deps/libcypher-parser
index aa708db5c3..6af15679c2 160000
--- a/deps/libcypher-parser
+++ b/deps/libcypher-parser
@@ -1 +1 @@
-Subproject commit aa708db5c38d81d7d5b0c78c9b4f1183096d4d93
+Subproject commit 6af15679c231268a54667a15f4d0d390b7c29621
diff --git a/src/ast/ast.c b/src/ast/... | 4 | 3 | 2 | [{"id": "G0", "claim": "array_append may not update the caller's array pointer, so aliases appended through the triple pointer could be lost.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Because AST validation has not yet run, _collect_call_projec... | null |
RedisGraph__RedisGraph__2173 | RedisGraph/RedisGraph | 2,173 | defect | 3149e3099b5942ce88482a4adc1f7038b9f01829 | c721a377a24923d589484fbb9e8c833b60e7ba25 | fix perf issue of allShortestPath | fixes https://github.com/RedisGraph/RedisGraph/issues/2170 | diff --git a/src/algorithms/all_shortest_paths.c b/src/algorithms/all_shortest_paths.c
index 626d5022d8..a2e2ab6fba 100644
--- a/src/algorithms/all_shortest_paths.c
+++ b/src/algorithms/all_shortest_paths.c
@@ -27,21 +27,27 @@ int AllShortestPaths_FindMinimumLength
NodeID destID = ENTITY_GET_ID(dest);
GrB_Vector ... | 4 | 3 | 1 | [{"id": "G0", "claim": "The reviewer questions whether changing the loop-exit check from `depth > ctx->maxLen` to `depth == ctx->maxLen` is valid, since `depth` was just incremented and the current element may still need to be checked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int... | null |
RedisGraph__RedisGraph__2222 | RedisGraph/RedisGraph | 2,222 | defect | a472b88e825a1ef80aeec15c02af3586389f33aa | 532ec759c9e2b2a97428cb4b42d16b9fa22ce679 | Fix crash on parser errors in queries with RETURN * | Error nodes exist at the clause level in libcypher-parser, which can make the clause index utilized by the `RETURN *` rewrite inaccurate.
This can simply be resolved by returning early if the clause index corresponds to an error node, as the query will immediately fail validation afterwards.
This issue can be see... | diff --git a/src/ast/ast_rewrite_star_projections.c b/src/ast/ast_rewrite_star_projections.c
index 8dd0e07cb2..fd4be48658 100644
--- a/src/ast/ast_rewrite_star_projections.c
+++ b/src/ast/ast_rewrite_star_projections.c
@@ -170,6 +170,15 @@ static void replace_clause
) {
cypher_astnode_type_t t = cypher_astnode_type(... | 2 | 2 | 0 | [{"id": "G0", "claim": "The per-child CYPHER_AST_ERROR scan in replace_clause should be dropped in favour of the existing AST_ContainsErrors check in parse_query, before AST_RewriteStarProjections is invoked.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
RedisGraph__RedisGraph__2228 | RedisGraph/RedisGraph | 2,228 | defect | a472b88e825a1ef80aeec15c02af3586389f33aa | b71495e990d7feeb75f6a331b3f88b12bd2ca0ec | Add compile-time and run-time validations for DELETE | Resolves #2209 | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index 0cd6dcbac3..d81e1d3d3e 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -155,13 +155,13 @@ static void _AST_GetIdentifiers(const cypher_astnode_t *node, rax *identifiers)
accum_node = cypher_ast_reduce_get_accumulator(n... | 2 | 2 | 0 | [{"id": "G0", "claim": "The pull request should also test (and thereby validate at run-time) deleting each supported non-graph-entity data type, e.g. via UNWIND over every scalar type, since only the function-call case is currently tested.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "int... | null |
RedisGraph__RedisGraph__2235 | RedisGraph/RedisGraph | 2,235 | defect | 9a709f2d8b3dc1e54036f24eafd37fca9bed3771 | 844c2b54ea7c4dccd8fe8fa76d29cb061e6bb2ab | improve the perf of matrix label population | this fix improve perf of loading an rdb of graph created with the below query
GRAPH.QUERY x "UNWIND range(1, 1000000) AS x CREATE (:N1), (:N2), (:N3), (:N4), (:N5)"
master: 22.541 seconds
this fix: 3.536 seconds | diff --git a/src/serializers/decoders/current/v11/decode_graph.c b/src/serializers/decoders/current/v11/decode_graph.c
index 1d7c6c590f..2fc7a6e1fb 100644
--- a/src/serializers/decoders/current/v11/decode_graph.c
+++ b/src/serializers/decoders/current/v11/decode_graph.c
@@ -196,6 +196,9 @@ GraphContext *RdbLoadGraphCon... | 3 | 3 | 0 | [{"id": "G0", "claim": "Change `Serializer_Graph_SetNodeLabels(gc->g)` to use `g` (already defined in this section) to match the surrounding style.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add an assertion enforcing the documented restrict... | null |
RedisGraph__RedisGraph__2296 | RedisGraph/RedisGraph | 2,296 | defect | fdca8ccf45c423476e1eca28ab1afcb13730fc8c | a704db912f2341640b524c2de8afbc4f86c2fbeb | validate return column names | fixes https://github.com/RedisGraph/RedisGraph/issues/2288 | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index 14d3922eb1..54357a0821 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -1007,6 +1007,35 @@ static AST_Validation _Validate_DELETE_Clauses(const AST *ast) {
return res;
}
+AST_Validation _AST_ValidateResultColumns
+(
... | 3 | 2 | 1 | [{"id": "G0", "claim": "WITH 1 AS a, 1 AS a is supported, so duplicate column names in WITH projections should also be validated (this too needs validating).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rephrase the comment '// column with same na... | null |
RedisGraph__RedisGraph__2328 | RedisGraph/RedisGraph | 2,328 | defect | d9e3599bf04518a38a62e7dbee6ce0237b6f543e | 8a959cc7bc392ffb9dd53c754b223b5ca978dfcd | Fix create entities validation | Closes #2326, #2306, #2307
Fix bug in `_Validate_CREATE_Entities` (due a typo) - a "re-declared alias" error was raised for a relation defined in some CREATE clause, instead of being raised if the alias was declared in previous clauses.
Also, perform the validation over previous expressions in the same CREATE clause... | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index c5c860dc04..7f81e2451b 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -906,55 +906,72 @@ static AST_Validation _Validate_MERGE_Clauses(const AST *ast) {
return res;
}
-// Validate each entity referenced in the CREAT... | 4 | 4 | 0 | [{"id": "G0", "claim": "Add an empty line after the _ValidateInlinedPropertiesOnPath call in _Validate_CREATE_Entities.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Redeclaring a bound node in a CREATE clause, as in MATCH (a) CREATE (a), should also rai... | null |
RedisGraph__RedisGraph__2432 | RedisGraph/RedisGraph | 2,432 | defect | 58ddb4a5eb72685a663934ea03fa382a45d93f00 | 945854a3409123c0c6d18033e463dd8ce122b427 | Allow update remove labels | This PR allows calling the "REMOVE" keyword on node labels
```
MATCH (n) REMOVE n:L RETURN labels(n)
MATCH (n) REMOVE n:L1:L2 RETURN labels(n)
```
- [x] code
- [x] TCK
- [x] FLOW | diff --git a/src/ast/ast.c b/src/ast/ast.c
index 0fb79d98fe..20c38720b2 100644
--- a/src/ast/ast.c
+++ b/src/ast/ast.c
@@ -115,6 +115,7 @@ bool AST_ReadOnly(const cypher_astnode_t *root) {
type == CYPHER_AST_MERGE ||
type == CYPHER_AST_DELETE ||
type == CYPHER_AST... | 8 | 6 | 0 | [{"id": "G0", "claim": "In _AST_MapRemoveItemReferences, drop the if/else dispatch and just have ASSERT(type == CYPHER_AST_REMOVE_LABELS) before calling the mapper.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment above GraphStatistics_DecNodeC... | null |
RedisGraph__RedisGraph__2453 | RedisGraph/RedisGraph | 2,453 | defect | 3d9f855c363fa7eedf2ea89c00e4cbdbdb230b6c | c82f7c09a36c11e123d901d0265b29cf19c2f49e | replace QSORT with stdlib qsort | Resolves #2424
I've switched from our [QSORT](https://github.com/RedisGraph/RedisGraph/blob/master/src/util/qsort.h) dependency implementation to [stdlib's qsort](https://en.wikipedia.org/wiki/Qsort)
On a 1M node graph sorting all of the nodes using:
```
MATCH (n)
WITH n ORDER BY n.v
RETURN count(n)
```
Run... | diff --git a/src/arithmetic/aggregate_funcs/agg_precentile.c b/src/arithmetic/aggregate_funcs/agg_precentile.c
index d4381a0de4..47e1ef7942 100644
--- a/src/arithmetic/aggregate_funcs/agg_precentile.c
+++ b/src/arithmetic/aggregate_funcs/agg_precentile.c
@@ -9,10 +9,16 @@
#include "../func_desc.h"
#include "../../err... | 7 | 2 | 0 | [{"id": "G0", "claim": "The reviewer asks why the modification of test_distinct_with_order (rewriting the DISTINCT/ORDER BY query with a WITH DISTINCT clause) is needed.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer needs to understand... | null |
RedisGraph__RedisGraph__2462 | RedisGraph/RedisGraph | 2,462 | defect | 93e60b1f556f97e823a124238fb6074e551e018a | f63af88578fa803517cbbe30159902aff748b250 | Remove properties | This PR allows to call `REMOVE` on node or edge properties
- [x] code
- [x] test
- [x] TCK | diff --git a/src/ast/ast_build_op_contexts.c b/src/ast/ast_build_op_contexts.c
index c7241ca67d..8188967095 100644
--- a/src/ast/ast_build_op_contexts.c
+++ b/src/ast/ast_build_op_contexts.c
@@ -40,10 +40,10 @@ static inline NodeCreateCtx _NewNodeCreateCtx(GraphContext *gc, const QGNode *n,
// Updates a single prope... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new test test_36_mix_add_and_remove_node_properties checks properties_set but does not also check that the property removal is counted.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Maybe an optimization should be added for ... | null |
RedisGraph__RedisGraph__2521 | RedisGraph/RedisGraph | 2,521 | defect | aaffbc48c0c54eb60a6e35e875e67834ac49ebd0 | 5be5479b2ba83611046128afea9421d16151da47 | change anon alias cannot be created by user | fix https://github.com/RedisGraph/RedisGraph/issues/2467 | diff --git a/src/ast/ast.c b/src/ast/ast.c
index e3e727c237..63488653c2 100644
--- a/src/ast/ast.c
+++ b/src/ast/ast.c
@@ -490,7 +490,7 @@ inline AST_AnnotationCtxCollection *AST_GetAnnotationCtxCollection(AST *ast) {
static inline char *_create_anon_alias(int anon_count) {
char *alias;
- asprintf(&alias, "anon_%d... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request is missing a flow test making sure a user cannot provide a query that uses an anonymous alias, such as `MATCH (@anon1) RETURN @anon1`.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RedisGraph__RedisGraph__2597 | RedisGraph/RedisGraph | 2,597 | defect | cceb2baa15aa659d4401cb6eae0abef53d4a379f | 8a3661d1f4c9ca404517418bae2d362cad513692 | Tests to create indexes on invalid property names | Hi, this is a part of the solution to #2484
This PR requires the PR to libcypher-parser [Fix property name validation used by "create index for"](https://github.com/RedisGraph/libcypher-parser/pull/18)
This PR only include the changes to the tests, the validation is done by libcypher-parser
The changes does not ... | diff --git a/deps/libcypher-parser b/deps/libcypher-parser
index bf2a7c95d4..ed8204dc45 160000
--- a/deps/libcypher-parser
+++ b/deps/libcypher-parser
@@ -1 +1 @@
-Subproject commit bf2a7c95d4cee078de6ece10f76536a774ad8170
+Subproject commit ed8204dc453bae24888f575c0a4aee773ac965da
diff --git a/tests/flow/test_index_cr... | 1 | 1 | 0 | [{"id": "G0", "claim": "The parser-level validation should also cover invalid property-name expressions like 'CREATE INDEX FOR (p:Person) ON (z.q)', whose handling would live in RedisGraph's ast_validations.c rather than the parser.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
RedisGraph__RedisGraph__2684 | RedisGraph/RedisGraph | 2,684 | defect | 0280abb2f38db90ba395714921feb62a5c523c0c | f01cf7296a181da3fe4248f41d4488bb45d04c88 | bug fix validate MERGE SET property: issue: 2637 | fix https://github.com/RedisGraph/RedisGraph/issues/2637 | diff --git a/src/ast/ast.h b/src/ast/ast.h
index 9e126d847b..7f753c08a8 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -37,6 +37,9 @@ bool AST_ContainsErrors(const cypher_parse_result_t *result);
// asserts if there are no errors!
void AST_ReportErrors(const cypher_parse_result_t *result);
+// Validate SET prope... | 3 | 2 | 0 | [{"id": "G0", "claim": "The Validate_SETProperty declaration added to src/ast/ast.h is not needed there and should be moved to ast_validations.c.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new MERGE SET tests expect the wrong error message: the q... | null |
RedisGraph__RedisGraph__2698 | RedisGraph/RedisGraph | 2,698 | defect | 87bb64707892b5f84c217342ff5863476687b31f | cd634027a3360f0e8e67a9525920ddc4701e8e44 | Add all-properties selector to map projection | Hi, this PR is to add feature #1547.
I did not find a function to get all properties from CYPHER_AST_MAP_PROJECTION_ALL_PROPERTIES selector, then the code is using properties().
To support cases like this:
```
CREATE (a:A {z:1}) RETURN a{.*, .undefinedProp}
```
A new internal function AR_ADDMAP() was created to... | diff --git a/src/arithmetic/arithmetic_expression_construct.c b/src/arithmetic/arithmetic_expression_construct.c
index f0efe932da..d7df4df964 100644
--- a/src/arithmetic/arithmetic_expression_construct.c
+++ b/src/arithmetic/arithmetic_expression_construct.c
@@ -397,9 +397,24 @@ static AR_ExpNode *_AR_ExpFromMapProject... | 11 | 11 | 6 | [{"id": "G0", "claim": "In AR_MERGEMAP(), the merging loop should iterate over the smaller map and add its pairs into the larger map (as shown in the suggested snippet) instead of the branch-by-count structure.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
RedisGraph__RedisGraph__2735 | RedisGraph/RedisGraph | 2,735 | defect | df249c56f9aafc563e4c51e9d6dd8983cd81b61e | 5b330fb52569c01b80a1fe29e7eff361fa2f951f | rewrite same clauses | implement https://github.com/RedisGraph/RedisGraph/issues/2234 | diff --git a/deps/libcypher-parser b/deps/libcypher-parser
index 9dee9d0f67..9992d478b7 160000
--- a/deps/libcypher-parser
+++ b/deps/libcypher-parser
@@ -1 +1 @@
-Subproject commit 9dee9d0f67f2ebe93361bd31289a7c18c049aaac
+Subproject commit 9992d478b7fa327cd98452e3ed5115f781548701
diff --git a/src/ast/ast.c b/src/ast/... | 2 | 2 | 0 | [{"id": "G0", "claim": "Move the call to cypher_ast_free into cypher_ast_query_replace_clauses so that whoever calls it doesn't need to remember to free the compacted clauses.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Duplicated entries in the final... | null |
RedisGraph__RedisGraph__2759 | RedisGraph/RedisGraph | 2,759 | defect | 72eb347aecf13b879122f442bcfb7a9d406930a0 | 48fbf60a17340fd5e07dfa4770a5b4148f9d888d | Validate variable length relationships in CREATE and MERGE | Hi, this PR is to solve bug #2330
The functions ```_Validate_MATCH_Clauses()``` and ```_ValidateMergeRelation()``` were modified, in case of detect a variable length relationship, the error is reported.
Sample output:
```
127.0.0.1:6379> GRAPH.QUERY g "CREATE (a:A)-[e1:E1*]->(b:B)"
(error) Variable length rela... | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index d1e19b6090..f7bf4a735d 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -183,13 +183,20 @@ static AST_Validation _ValidateMultiHopTraversal
return AST_INVALID;
}
-// Verify that MERGE doesn't redeclare bound relations... | 1 | 1 | 0 | [{"id": "G0", "claim": "The _ValidateMergeRelation() description should read \"and that the entity is not a variable length pattern\" instead of \"and that there is not variable length relationship\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
RedisGraph__RedisGraph__2825 | RedisGraph/RedisGraph | 2,825 | defect | 59e70a82c57260a9498545a94bc733358e0ad0ba | 0b42d7df4f46f86bd6224ceb155f09c8c162a37b | Introducing the FOREACH clause | This PR introduces the FOREACH clause to the OpenCypher clauses supported by RedisGraph. | diff --git a/docs/commands/graph.query.md b/docs/commands/graph.query.md
index c081dfe9ed..c558e69a4b 100644
--- a/docs/commands/graph.query.md
+++ b/docs/commands/graph.query.md
@@ -20,19 +20,21 @@ supported.
### Query structure
-- MATCH
-- OPTIONAL MATCH
-- WHERE
-- RETURN
-- ORDER BY
-- SKIP
-- LIMIT
-- CREATE
... | 15 | 14 | 2 | [{"id": "G0", "claim": "Add a comment next to the tap assertion explaining the case of a single segment whose root is FOREACH and therefore has no tap.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Include a short FOREACH query example in the op_... | null |
RedisGraph__RedisGraph__2879 | RedisGraph/RedisGraph | 2,879 | defect | ddcbcf45b355e9fe543c21caba133bcea6089f75 | f6b089034ccfd72ff73b5b873d1cb74a539ba42e | Foreach fix | Fixes #2874.
* Reference of named paths in FOREACH.
* Cloning the list components alias. | diff --git a/src/ast/ast_build_reference_map.c b/src/ast/ast_build_reference_map.c
index 7fe5cf4810..18aec10e7c 100644
--- a/src/ast/ast_build_reference_map.c
+++ b/src/ast/ast_build_reference_map.c
@@ -334,11 +334,17 @@ static void _AST_MapForeachClauseReferences
ASSERT(ast != NULL);
ASSERT(foreach_clause != NULL)... | 8 | 7 | 2 | [{"id": "G0", "claim": "Fix the grammar of the test comments in test_foreach.py from \"make sure ... was created\" to \"were created\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Add comments explaining the idea behind the queries in test11_pa... | null |
RedisGraph__RedisGraph__2885 | RedisGraph/RedisGraph | 2,885 | defect | 4e49c8771d288331ab4eedc91ad8364a4ce279ac | a4dba6addd0b9a5fdfdcbfa1fa2db6ef725f21c2 | Add number utilities. | For the initial stage, adds the number overflow additions. This is used by GRAPH.INFO when collecting information from multiple shards, as we can't guarantee the numbers we receive and add together won't overflow in the resulting integers. | diff --git a/src/util/num.c b/src/util/num.c
new file mode 100644
index 0000000000..5c902b5017
--- /dev/null
+++ b/src/util/num.c
@@ -0,0 +1,43 @@
+/*
+ * Copyright Redis Ltd. 2018 - present
+ * Licensed under your choice of the Redis Source Available License 2.0 (RSALv2) or
+ * the Server Side Public License v1 (SSPLv... | 11 | 6 | 1 | [{"id": "G0", "claim": "The test file uses the UINT##width##_MAX constants without including the header that defines them (e.g. <stdint.h>), and the corresponding header should be included.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Short explan... | null |
RedisGraph__RedisGraph__3018 | RedisGraph/RedisGraph | 3,018 | defect | 728d93de650979a54206017ce4bf54ebc8dddebf | f3966c3d6f5c5dca2ee1f934d5f1bcf61f1b19bf | Validate with fix | Adds validations to cases such as `RETURN a AS a` (and more specified in the tests), in which we do not raise an error as we should (alias not defined), but return nil. | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index 74d214a853..9282e81084 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -100,7 +100,7 @@ static bool _ValidateShortestPaths
return true;
}
-// get aliases of a WITH clause
+// introduce aliases of a WITH clause to the... | 1 | 1 | 0 | [{"id": "G0", "claim": "Migrate the undefined-variables test from test_with_clause.py to test_query_validation.py, and extend it to queries using only the RETURN clause, e.g. `RETURN a AS a`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RedisGraph__RedisGraph__3076 | RedisGraph/RedisGraph | 3,076 | defect | 187274049e3b1da8109641de84e066d003f2077a | 24394a4ef4e06311d54cb46bdea0082f13874174 | Fix validation of minHops and maxHops | This patch is to fix #3060
If ```minHops > maxHops``` the corresponding error message is returned. | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index 64e9bca60a..7adf1dc1ca 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -177,7 +177,7 @@ static void _AST_GetProcCallAliases
}
}
-// make sure multi-hop traversals are not aliased
+// make sure multi-hop traversals ha... | 4 | 4 | 0 | [{"id": "G0", "claim": "The expect_error helper should be extracted into a utility function instead of a test-class method, and its access to the global variable redis_graph should be changed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The c... | null |
RedisGraph__RedisGraph__3152 | RedisGraph/RedisGraph | 3,152 | defect | 49cde00f511dca976f645f7326b5e4d3012031d7 | 77dd56e993b588c8ae4eb382da38ddc39cbeeb64 | make delete operation eager | fixes https://github.com/RedisGraph/RedisGraph/issues/3150, https://github.com/RedisGraph/RedisGraph/issues/2263 | diff --git a/src/arithmetic/entity_funcs/entity_funcs.c b/src/arithmetic/entity_funcs/entity_funcs.c
index 9e1ff09502..7c9e8db417 100644
--- a/src/arithmetic/entity_funcs/entity_funcs.c
+++ b/src/arithmetic/entity_funcs/entity_funcs.c
@@ -93,7 +93,7 @@ SIValue AR_TYPE(SIValue *argv, int argc, void *private_data) {
ch... | 44 | 36 | 3 | [{"id": "G0", "claim": "Please add a comment to the test saying that IDs are expected to be reused after deletion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The repeated DELETE/CREATE block in the test needs justification or removal (its purp... | null |
RedisGraph__RedisGraph__348 | RedisGraph/RedisGraph | 348 | defect | 981c07993acd77f33a3127b598a62bbbe2994917 | b9c0062e9cb9f3e56e5b38ce380b1d804484791a | reuse attribute name to avoid duplications | Graph entity property set no longer hold the property name, instead each attribute name has a unique ID, as such a property set is an array of attribute ID, attribute value.
The changes should be backward compatible, we should be able to load data from previous RedisGraph versions. | diff --git a/src/Makefile b/src/Makefile
index c13e969689..abb6f5e8d0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -29,8 +29,10 @@ export CFLAGS
# Sources
SOURCEDIR=$(shell pwd -P)
CC_SOURCES = $(wildcard $(SOURCEDIR)/*.c)
+CC_SOURCES += $(wildcard $(SOURCEDIR)/algorithms/*.c)
CC_SOURCES += $(wildcard $(SOURCEDI... | 16 | 15 | 1 | [{"id": "G0", "claim": "In _CommitNodes the initialization of prop_id to ATTRIBUTE_NOTFOUND is an unnecessary line because the next statement immediately overwrites it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "MERGE clauses that specify mu... | null |
RedisGraph__RedisGraph__586 | RedisGraph/RedisGraph | 586 | defect | 0253a235866c88adbe352f471f51ef2c8d149074 | f29329ef9b0b77395e8215769a2b10ec7c607bc8 | case simple form | https://neo4j.com/docs/cypher-manual/current/syntax/expressions/#query-syntax-case | diff --git a/src/arithmetic/arithmetic_expression.c b/src/arithmetic/arithmetic_expression.c
index 1ab3c21c17..dd31807c62 100644
--- a/src/arithmetic/arithmetic_expression.c
+++ b/src/arithmetic/arithmetic_expression.c
@@ -232,7 +232,32 @@ AR_ExpNode *AR_EXP_FromExpression(RecordMap *record_map, const cypher_astnode_t
... | 3 | 3 | 3 | [{"id": "G0", "claim": "The reviewer asks whether libcypher-parser holds different AST nodes or a different number of expressions in the general (generic) CASE form — i.e. whether this change may fail when CASE is written without a compare value.", "category": "correctness", "verdict": "supported", "priority": "P1", "s... | null |
RedisGraph__RedisGraph__591 | RedisGraph/RedisGraph | 591 | defect | ff6f865951cd2c717f9a21fef95971926a34d4cc | 6f8629ce370fbb3e040359d0112e104e2168b96e | Emit validation error when an alias refers to both nodes and edges | Resolves #590 | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index 76c4ac7e68..ca598295a9 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -270,7 +270,7 @@ static AST_Validation _ValidatePath(const cypher_astnode_t *path,
AST_Validation res = AST_VALID;
uint path_len = cypher_ast_patt... | 3 | 2 | 0 | [{"id": "G0", "claim": "Create an AST object for each scope and simply call _ValidateClauses on it — if the cost of building these sub-ASTs is not great — to simplify the overall validation logic and make it clearer.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
RedisGraph__RedisGraph__600 | RedisGraph/RedisGraph | 600 | defect | 3feaf0af31a3fb0dc4a9156550e7cb47e42b1297 | a3aa07a171ce2512bc0e6851c84c58ef781d8f36 | Sivalue memory safety | This PR demonstrates the interface and treatment of memory ownership that I hope to adopt with respect to SIValues. It attempts to minimize redundant copying while making it clear at all points whether an access is potentially unsafe.
There are currently no memory errors in running the test suite and TCK with this a... | diff --git a/src/arithmetic/arithmetic_expression.c b/src/arithmetic/arithmetic_expression.c
index e21972c763..cd53acf900 100644
--- a/src/arithmetic/arithmetic_expression.c
+++ b/src/arithmetic/arithmetic_expression.c
@@ -135,6 +135,47 @@ int AR_EXP_GetOperandType(AR_ExpNode *exp) {
return -1;
}
+/* Compact tree ... | 4 | 3 | 1 | [{"id": "G0", "claim": "The per-type copying logic in SIValue_Persist can be reduced to simply *v = SI_CloneValue(*v).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "For clarity, introduce an SIValue alias (e.g. SIValueVolatile) so that SIValue_... | null |
RedisGraph__RedisGraph__724 | RedisGraph/RedisGraph | 724 | defect | 4602f3abbe93d9fcc1e2ae2d725e853e1fdc7742 | 96f6aeba3b7d7b4f7820fc2434530a769af98160 | added valdiation for path in filter | As a result of #719, this PR adds an AST validation for the existence of path patterns in a filter. RedisGraph will reply with an error `RedisGraph currently does not support filtering with path pattern`, once path patterns exist in filter. | diff --git a/src/ast/ast_validations.c b/src/ast/ast_validations.c
index cf75e2e655..1d98763f3e 100644
--- a/src/ast/ast_validations.c
+++ b/src/ast/ast_validations.c
@@ -456,6 +456,19 @@ static AST_Validation _ValidateInlinedPropertiesOnPath(const cypher_astnode_t *p
return AST_VALID;
}
+// TODO: Remove this once... | 2 | 1 | 0 | [{"id": "G0", "claim": "The AST searching/scanning pattern repeats itself; the reviewer asks to replace the bespoke recursive scanner with a more generic function that, given a root cypher_astnode_t node and a cypher_astnode_type_t, scans the tree beneath the node and returns whether the type was found (possibly one al... | null |
RedisGraph__RedisGraph__796 | RedisGraph/RedisGraph | 796 | defect | bd9ae4f6119f70d155073522996661ba78f59f32 | 3af49f001b8b0f69eb7eb529fa03d42808699ef8 | Delete elements verification | Both UNWIND and DELETE should be operating on Arithmetic expressions,
Consider:
`MATHC p = ()-[]->() UNWIND nodes(p) AS node DELETE node`
`MATHC p = () DELETE nodes(p)[0]` | diff --git a/docs/commands.md b/docs/commands.md
index 4b7419764c..9b208f3feb 100644
--- a/docs/commands.md
+++ b/docs/commands.md
@@ -513,10 +513,10 @@ This section contains information on all supported functions from the Cypher que
## List functions
|Function| Description|
| ------- |:-----------|
-| head() | ret... | 6 | 6 | 4 | [{"id": "G0", "claim": "Delete the last line of the comment inside AR_TOINTEGER's T_STRING case, which misleadingly says a string SIValue is created.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "AR_TOINTEGER should handle NULL inputs, with NULL ... | null |
RedisGraph__RedisGraph__935 | RedisGraph/RedisGraph | 935 | defect | c62601446c9ef3e769307a4b0b219cc357dfe769 | b93f3dea847bc0f5ec050a89a6674a05ea95b56b | Leak fixes | A few memory leak fixes in Redis key handles and procedure read-only checks. | diff --git a/src/ast/ast.c b/src/ast/ast.c
index 61d1b4c8c8..fd580a93f4 100644
--- a/src/ast/ast.c
+++ b/src/ast/ast.c
@@ -108,8 +108,7 @@ static bool _AST_ReadOnly(const cypher_astnode_t *root) {
// In case of procedure call which modifies the graph/indices.
if(type == CYPHER_AST_CALL) {
const char *proc_name =... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reworded comment 'Retrieves procedure with output' is wrong — 'ith' meant the output at position i, so the comment should say the function returns the output at position i.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RedisGraph__redisgraph.js__23 | RedisGraph/redisgraph.js | 23 | defect | 1287f210675b0c6f71fc6ec2cc36a1455805a8f6 | 52c9b2455cab929b0bfefc46f74e04de37a8e9c4 | added support for server exceptions. | added check for runtime exception. added tests for compile-time and runtime exceptions. | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 6df1731d78..995fe8ec89 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -8,7 +8,7 @@ jobs:
docker:
- image: circleci/node:10.15
- - image: redislabs/redisgraph:2.0-edge
+ - image: redislabs/redisgraph:edge
... | 1 | 1 | 0 | [{"id": "G0", "claim": "Bind the last reply element to a local variable (e.g. `let e = resp[len-1]`) and reuse it rather than repeatedly indexing `resp[len-1]` in parseResponse.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RedisGraph__redisgraph.js__39 | RedisGraph/redisgraph.js | 39 | defect | 5796f2229f4b5456ac060460db045524c6bbd577 | 619cd4d367121bbcd06c412af3e3ad3f6950002e | Allow 0 (zero) and "" (empty string) to be returned as string. | The current implementation of `Record`.`getString()` returns `null` for 0 and "" (empty string). I don't think this is the intended behavior.
This change makes the value test more explicit so 0 and "" are not returned as null.
| diff --git a/src/record.js b/src/record.js
index 990c5aa10f..ac8f0a7657 100644
--- a/src/record.js
+++ b/src/record.js
@@ -38,8 +38,9 @@ class Record {
index = this._header.indexOf(key);
}
- if (this._values[index]) {
- return this._values[index].toString();
+ let value = this._values[index];
+ if (value ... | 1 | 1 | 0 | [{"id": "G0", "claim": "A simple unit test should be added covering this case (0/empty-string values returned as string from Record).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
RedisJSON__JRedisJSON__28 | RedisJSON/JRedisJSON | 28 | defect | d2a4d30d455d4ae0a707e58546aaed16982a5797 | c59316492fea0841763f6651c5a11be4685697e4 | Improves Test Coverage and refactors deprecations out of the tests | * bumps up the test coverage from 59% to 68%
* refactors calls in the tests to deprecated methods
* add @SupressWarnings where appropriate (non-Bean JSON test objects)
* organizes the import statements
* fixes test (delException) which was missing @Test annotation and was otherwise broken | diff --git a/src/main/java/com/redislabs/modules/rejson/JReJSON.java b/src/main/java/com/redislabs/modules/rejson/JReJSON.java
index 9b37497..301d633 100644
--- a/src/main/java/com/redislabs/modules/rejson/JReJSON.java
+++ b/src/main/java/com/redislabs/modules/rejson/JReJSON.java
@@ -80,7 +80,7 @@ public byte[] getRaw(... | 8 | 8 | 2 | [{"id": "G0", "claim": "The UsageExampleTest exampleShouldWork test should assert the get result inline, as `assertEquals(\"bar\", reJSON.get(\"foo\"))`, instead of through a local variable.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two path-va... | null |
RedisJSON__JRedisJSON__31 | RedisJSON/JRedisJSON | 31 | defect | 356bcba19d4ad60474c857217c6e95bc356facbd | 6a19bf17f356d9a4c5fd45ba299031e371fbea6b | Implements MGET command | See https://oss.redislabs.com/redisjson/commands/#jsonmget | diff --git a/src/main/java/com/redislabs/modules/rejson/JReJSON.java b/src/main/java/com/redislabs/modules/rejson/JReJSON.java
index 9b37497..84a9107 100644
--- a/src/main/java/com/redislabs/modules/rejson/JReJSON.java
+++ b/src/main/java/com/redislabs/modules/rejson/JReJSON.java
@@ -28,6 +28,12 @@
package com.redis... | 5 | 5 | 0 | [{"id": "G0", "claim": "Format the new mget code with spaces instead of tabs.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Fix the `key s` typos in the two new mget javadoc comments.", "category": "documentation", "verdict": "supported", "prio... | null |
RedisJSON__JRedisJSON__34 | RedisJSON/JRedisJSON | 34 | defect | 42aa25fd025e4ac7b54661a594ba7b38d6ad6bad | 2cf5e3980f67a54eaeefd21747cf1ac94a531456 | implement array and string commands | This PR implements:
- `JSON.STRAPPEND`
- `JSON.STRLEN`
- `JSON.ARRAPPEND`
- `JSON.ARRINDEX`
- `JSON.ARRINSERT`
- `JSON.ARRLEN`
- `JSON.ARRPOP`
- `JSON.ARRTRIM` | diff --git a/src/main/java/com/redislabs/modules/rejson/JReJSON.java b/src/main/java/com/redislabs/modules/rejson/JReJSON.java
index 1a73e1a..79c4500 100644
--- a/src/main/java/com/redislabs/modules/rejson/JReJSON.java
+++ b/src/main/java/com/redislabs/modules/rejson/JReJSON.java
@@ -29,7 +29,7 @@
package com.redislab... | 2 | 1 | 0 | [{"id": "G0", "claim": "LGTM reports new alerts for spurious Javadoc @param tags in the Javadoc this pull request adds (27 on the first report, still 3 after the author's fix).", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Path.hashCode() should ... | null |
RedisJSON__JRedisJSON__61 | RedisJSON/JRedisJSON | 61 | defect | db371997ea89b5a4c92c782cec677ac7126cd81b | 9e1be202c97598fb2e8eb7c4e96800c381dd6145 | Spring Integration PR | This PR allows JRedisJSON to:
* be instantiated used a `Jedis` instance (for envs that manage and serve their own connections, a.k.a. Spring)
* to set the `GsonBuilder` (`Gson` factory) to allow for custom encodings on classes (for example Geo classes in Spring Data such as Point, Distance, etc. https://docs.spring.i... | diff --git a/src/main/java/com/redislabs/modules/rejson/JReJSON.java b/src/main/java/com/redislabs/modules/rejson/JReJSON.java
index af05136..1d4dd77 100644
--- a/src/main/java/com/redislabs/modules/rejson/JReJSON.java
+++ b/src/main/java/com/redislabs/modules/rejson/JReJSON.java
@@ -35,6 +35,7 @@
import java.util.str... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add tests, even if only simple sanity tests, for its new client behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RedisJSON__RedisJSON__1394 | RedisJSON/RedisJSON | 1,394 | defect | 4fde9b55dd5aec5c5bd56501f58fcfd237acc6ab | 134a7b4174c7ff7137a2824853f0310ab74f4744 | MOD-11358 integrate ijson to the json module | - Support returning either Owned or Borrowed values from iterators, leading to whole changes in code flow.
- Changing c_api, introducing a new api to allow to always return a reference to the underlying data(since we can't always return a reference to the SelectValue from the iterators themselves
- Add benchmark fil... | diff --git a/Cargo.lock b/Cargo.lock
index 5c4a37af0e..7029fd2276 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -199,6 +199,12 @@ dependencies = [
"libc",
]
+[[package]]
+name = "crunchy"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "460fbee9c2c2f33933d720630a6a0ba... | 21 | 18 | 1 | [{"id": "G0", "claim": "The found object value is needlessly cloned when mapping it to its length (v.clone().map_or(...) instead of borrowing).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The result is needlessly cloned in the filter predicate, a... | null |
RedisJSON__RedisJSON__1504 | RedisJSON/RedisJSON | 1,504 | defect | 3878467846a158aef9de8fd98e6ded828504e074 | b369564baf842c5fc0353d0a2fd68d30a6aa9962 | MOD-7982 Fix JSON.GET crash on overflowing array slice indices | Array index parsing in json_path used `.parse::<i64>().unwrap()` which panicked (crashing Redis) when a path contained indices exceeding i64 range, e.g. `$[0:40000000000000000000].id`. Replace with saturating parse helpers that clamp to i64::MAX/MIN on overflow, letting calc_abs_index naturally bound the value to the a... | diff --git a/json_path/src/json_path.rs b/json_path/src/json_path.rs
index eb2dd1a9d..4e0c62e89 100644
--- a/json_path/src/json_path.rs
+++ b/json_path/src/json_path.rs
@@ -696,6 +696,23 @@ impl<'i, UPTG: UserPathTrackerGenerator> PathCalculator<'i, UPTG> {
}
}
+ /// Parse a string as i64, saturating... | 1 | 1 | 1 | [{"id": "G0", "claim": "parse_index and parse_step treat any parse failure (not just overflow) as overflow and clamp, so malformed indices/steps that used to fail fast can produce unexpected selections.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RedisJSON__RedisJSON__1580 | RedisJSON/RedisJSON | 1,580 | defect | a353a47b87b87488eb8be732148ea4dfde507d24 | aedf95161922d111c364ede33291866da1199bca | Cherry-pick: Cherry-pick bug fixes to 8.8 (#1557) | Cherry-pick of 0b3cc6ea26167c6388edefaae2f74f70c78f0c06 onto 2.4
Includes:
* MOD-6722 Fix mutation ordering for array commands with recursive paths
* MOD-7266 make sure to `end()` deserialization, to disallow trailing content
* MOD-14664 Json Path evaluation - Allow multi-result nodelists in filter comparisons, Don't ... | diff --git a/deps/readies b/deps/readies
index 7fc8e62b2..28ddde9e6 160000
--- a/deps/readies
+++ b/deps/readies
@@ -1 +1 @@
-Subproject commit 7fc8e62b24d3f7ff01096d83f14cbc216ac0e2f0
+Subproject commit 28ddde9e66d72289b3d3e700dc7114b27de20888
diff --git a/redis_json/src/commands.rs b/redis_json/src/commands.rs
index ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The added test_filter_null tests use filter expressions like $[?(@==null)] but the 2.4 grammar defines term as select_term | decimal | string | boolean with no null variant, so the literal null cannot be parsed and compile(path).unwrap() will panic.", "category": "correctness", "verdict": "suppo... | null |
RedisJSON__RedisJSON__890 | RedisJSON/RedisJSON | 890 | defect | 1a978ecd8455f071d392f8be001bc0d95ba0cd23 | e6061322c6c6d1992ec4e9bdd24dc1ce8ded8257 | MOD-4602: handle jsonpath filter with 3 or more operands | Fix #889 | diff --git a/.github/wordlist.txt b/.github/wordlist.txt
index 8a71ff305..b562c9371 100644
--- a/.github/wordlist.txt
+++ b/.github/wordlist.txt
@@ -29,6 +29,7 @@ PyPi
README
RSALv
Rafa
+Redisson
ReJSON
RediSearch
RedisJSON
diff --git a/Cargo.lock b/Cargo.lock
index 4039bfdce..cef0295ad 100644
--- a/Cargo.lock
++... | 1 | 1 | 1 | [{"id": "G0", "claim": "Adding redis-module as a dev-dependency needs to be verified to not somehow affect the final .so file, i.e. that redisjson.so still uses the Redis allocator.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
RedisLabsModules__redismodule-rs__211 | RedisLabsModules/redismodule-rs | 211 | defect | b1ba591810d4d8a3cd0a91e250e721e24bc1c905 | e7426aab31d02744c7771b7039c6afd6e7777b41 | Add optional info function to redis_module macro | Adding a new argument to `redis_module` macro, which allows specifying a callback function for adding specific module information to the `INFO` command,
e.g., `INFO MODULES`,
or `INFO <module_name>`, for example:
```
127.0.0.1:6379> INFO hello
# hello_hello
hello_field:value
127.0.0.1:6379>
```
(this is i... | diff --git a/examples/hello.rs b/examples/hello.rs
index 3131408f..bd799b3d 100644
--- a/examples/hello.rs
+++ b/examples/hello.rs
@@ -1,8 +1,10 @@
#[macro_use]
extern crate redis_module;
-use redis_module::{Context, RedisError, RedisResult, RedisString};
+use redis_module::InfoContext;
+use redis_module::Status;
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reviewer asks why the new InfoContext struct in src/context/mod.rs declares its raw ctx pointer field as pub.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether calling base_info_func when the optional __... | null |
RedisLabsModules__redismodule-rs__362 | RedisLabsModules/redismodule-rs | 362 | defect | 12ba3dd9d178ff4b793cd11c53937dca293d635d | 6af53d99683024a5e7d9a337e390de833c9c9f16 | open key flags | This PR adds the ability to open key for read or write with additional flags
It adds the function `open_with_flags` both for `RedisKeyWritable` and `RedisKey` as well as the following flags:
```
/// Avoid touching the LRU/LFU of the key when opened.
NOTOUCH,
/// Don't trigger keyspace event on key misses.
... | diff --git a/.gitignore b/.gitignore
index 117e9bb0..4ad98618 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,3 +21,5 @@ dump.rdb
# Debugger-related files:
.gdb_history
+
+venv/
diff --git a/Cargo.toml b/Cargo.toml
index c2befba4..a9b1c764 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -112,6 +112,10 @@ crate-type = [... | 13 | 11 | 6 | [{"id": "G0", "claim": "Use `bitflags!` for the open-key flags instead of a `Vec<KeyFlag>` so that mistakes such as passing the same flag twice become impossible (and the representation is more performant).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.