Skip to content

Fix creating indexes with a list of labels. - #2714

Open
iddm wants to merge 3 commits into
RedisGraph:masterfrom
iddm:2610-fix-creating-indexes-with-a-list-of-labels
Open

iddm wants to merge 3 commits into
RedisGraph:masterfrom
iddm:2610-fix-creating-indexes-with-a-list-of-labels

Conversation

@iddm

@iddm iddm commented Nov 17, 2022

Copy link
Copy Markdown
Collaborator

Previously, a list of labels was allowed in the query but never validated properly and the strings weren't extracted from the list.

This commit parses the list of strings and so creates indexes for each label in the list as intended.

Resolves: #2610

@iddm
iddm requested a review from AviAvni November 17, 2022 10:59
@iddm
iddm force-pushed the 2610-fix-creating-indexes-with-a-list-of-labels branch from 5b8873c to 92add67 Compare November 17, 2022 11:30
Previously, a list of labels was allowed in the query but never
validated properly and the strings weren't extracted from the list.

This commit parses the list of strings and so creates indexes
for each label in the list as intended.

Resolves: RedisGraph#2610
@iddm
iddm force-pushed the 2610-fix-creating-indexes-with-a-list-of-labels branch from 7b0f8a7 to f3205f5 Compare November 17, 2022 11:31
@codecov

codecov Bot commented Nov 17, 2022

Copy link
Copy Markdown

Codecov Report

Base: 92.41% // Head: 92.45% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (a92f6f6) compared to base (afa74e0).
Patch coverage: 80.39% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2714      +/-   ##
==========================================
+ Coverage   92.41%   92.45%   +0.03%     
==========================================
  Files         263      263              
  Lines       25035    25067      +32     
==========================================
+ Hits        23137    23175      +38     
+ Misses       1898     1892       -6     
Impacted Files Coverage Δ
src/procedures/proc_fulltext_create_index.c 88.34% <80.39%> (-1.74%) ⬇️
src/procedures/proc_ss_paths.c 90.40% <0.00%> (-0.88%) ⬇️
src/execution_plan/ops/op_aggregate.c 98.14% <0.00%> (-0.62%) ⬇️
src/ast/ast_validations.c 96.56% <0.00%> (+0.09%) ⬆️
src/value.c 89.55% <0.00%> (+0.31%) ⬆️
src/arithmetic/arithmetic_expression.c 93.84% <0.00%> (+0.45%) ⬆️
src/procedures/proc_sp_paths.c 95.98% <0.00%> (+0.57%) ⬆️
src/module_event_handlers.c 96.29% <0.00%> (+7.40%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Corrupted label when calling db.idx.fulltext.createNodeIndex with an array of labels

1 participant