Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for filter by queries #722

Merged
merged 10 commits into from
May 24, 2021
Merged

Add support for filter by queries #722

merged 10 commits into from
May 24, 2021

Conversation

danni-m
Copy link
Collaborator

@danni-m danni-m commented May 10, 2021

No description provided.

@codecov
Copy link

codecov bot commented May 11, 2021

Codecov Report

Merging #722 (2585d5d) into master (cef7bf6) will increase coverage by 0.35%.
The diff coverage is 99.59%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #722      +/-   ##
==========================================
+ Coverage   87.55%   87.91%   +0.35%     
==========================================
  Files          22       23       +1     
  Lines        3769     3863      +94     
==========================================
+ Hits         3300     3396      +96     
+ Misses        469      467       -2     
Impacted Files Coverage Δ
src/filter_iterator.c 98.94% <98.94%> (ø)
src/gears_commands.c 90.51% <100.00%> (ø)
src/gears_integration.c 89.95% <100.00%> (+0.04%) ⬆️
src/module.c 89.15% <100.00%> (-0.18%) ⬇️
src/query_language.c 95.53% <100.00%> (+0.71%) ⬆️
src/reply.c 100.00% <100.00%> (+2.38%) ⬆️
src/resultset.c 98.43% <100.00%> (-0.02%) ⬇️
src/series_iterator.c 95.40% <100.00%> (-1.35%) ⬇️
src/tsdb.c 94.98% <100.00%> (+0.55%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cef7bf6...2585d5d. Read the comment docs.

Copy link
Contributor

@filipecosta90 filipecosta90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danni-m I believe the only things we're missing is:

  • FILTER_BY_VALUE same look and fell of https://redis.io/commands/zrangebyscore. Like we said we would add.
  • small negative test on the missing covered LOC
  • small addition to the docs explaining the FILTER_BY_VALUE and FILTER_BY_TS
    wdyt?

src/query_language.c Show resolved Hide resolved
return TSDB_ERROR;
}

if (RedisModule_StringToDouble(argv[offset + 1], &args->min) != REDISMODULE_OK) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allow for -inf, and ( explicit interval just like https://redis.io/commands/zrangebyscore#exclusive-intervals-and-infinity

return TSDB_ERROR;
}

if (RedisModule_StringToDouble(argv[offset + 2], &args->max) != REDISMODULE_OK) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allow for +inf, and ) explicit interval just like https://redis.io/commands/zrangebyscore#exclusive-intervals-and-infinity

filipecosta90
filipecosta90 previously approved these changes May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants