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

feat: support expr can be evaluate in range query #12

Merged

Conversation

Taylor-lagrange
Copy link

Support use expr which can be evaluate at logical plan stage in range query.

Case like:

SELECT 
    ts, 
    min(val) RANGE (INTERVAL '1' day + INTERVAL '1 year 2 hours 3 minutes') 
FROM 
    host 
ALIGN 
    (INTERVAL '1' day + INTERVAL '1 year 2 hours 3 minutes') 
TO 
    (now() - INTERVAL '1' day) 
by (1);

@coveralls
Copy link

coveralls commented Apr 26, 2024

Pull Request Test Coverage Report for Build 8846522182

Details

  • 12 of 12 (100.0%) changed or added relevant lines in 2 files are covered.
  • 63 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.03%) to 84.249%

Files with Coverage Reduction New Missed Lines %
src/parser/mod.rs 63 80.42%
Totals Coverage Status
Change from base Build 8182261050: 0.03%
Covered Lines: 20662
Relevant Lines: 24525

💛 - Coveralls

@Taylor-lagrange Taylor-lagrange force-pushed the feat-evaluate-range-expr branch from 286dc1b to 59b5761 Compare April 26, 2024 10:00
@waynexia waynexia merged commit e4e496b into GreptimeTeam:v0.44.x Apr 26, 2024
9 checks passed
@Taylor-lagrange Taylor-lagrange deleted the feat-evaluate-range-expr branch April 30, 2024 03:27
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.

3 participants