Skip to content

[8.0] Fix APPLY/FILTER parser - [MOD-7804]#5564

Merged
nafraf merged 1 commit into8.0from
backport-5520-to-8.0
Jan 23, 2025
Merged

[8.0] Fix APPLY/FILTER parser - [MOD-7804]#5564
nafraf merged 1 commit into8.0from
backport-5520-to-8.0

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #5520 to 8.0.

* fix order of operations

* minor improvements to the lexer

* improve functions parsing

* optimize "NOT" logic and perform arithmetic operations immediately

* fix flow tests

* fix grammar optimization

* changed function API

* added a test

* minor fix

* fix precedence

* minor improvement

* reorder rule and fix leak

* another fix

* added test

* more tests for a better coverage

* improved test

* fix assertion

* review fixes

* address code review

* added comments

(cherry picked from commit eb14b95)
@codecov
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 97.60479% with 8 lines in your changes missing coverage. Please review.

Project coverage is 87.25%. Comparing base (a57aae1) to head (0c01789).
Report is 1 commits behind head on 8.0.

Files with missing lines Patch % Lines
src/aggregate/expr/lexer.c 86.36% 6 Missing ⚠️
src/aggregate/expr/expression.c 80.00% 1 Missing ⚠️
src/aggregate/expr/parser.c 99.37% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.0    #5564      +/-   ##
==========================================
+ Coverage   87.18%   87.25%   +0.07%     
==========================================
  Files         196      196              
  Lines       35194    35226      +32     
==========================================
+ Hits        30683    30737      +54     
+ Misses       4511     4489      -22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nafraf nafraf enabled auto-merge January 23, 2025 17:57
@nafraf nafraf added this pull request to the merge queue Jan 23, 2025
Merged via the queue into 8.0 with commit a1aa0e2 Jan 23, 2025
11 checks passed
@nafraf nafraf deleted the backport-5520-to-8.0 branch January 23, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants