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

docs: Add ref for range query #618

Merged
merged 3 commits into from Oct 18, 2023

Conversation

Taylor-lagrange
Copy link
Contributor

What's Changed in this PR

Add reference for range query in v0.4

related issue

GreptimeTeam/greptimedb#1662

Wait this GreptimeTeam/greptimedb#2557 merge to greptimedb first

Checklist

  • Please ensure that the content in summary.yml matches the current document structure when you changed the document structure.
  • This change requires follow-up update in localized docs.

@Taylor-lagrange Taylor-lagrange requested review from nicecui and a team as code owners October 12, 2023 06:27
docs/zh/v0.4/reference/sql/range.md Outdated Show resolved Hide resolved
docs/zh/v0.4/reference/sql/range.md Outdated Show resolved Hide resolved
Querying and aggregating data within a range of time is a common query pattern for time series data, such as the `Range selector` in `PromQL`. GreptimeDB supports Range queries in SQL, which is used to summarize time series data into time chunks and aggregate data on time chunks. As part of the `SELECT` statement, Range query can be flexibly combined with SQL to provide more powerful time series data query capabilities in SQL.

## Syntax

Copy link
Collaborator

Choose a reason for hiding this comment

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

The syntax should be something like (just an example):

SELECT
  RANGE_EXPRESSION(column1) RANGE TIME_INTERVAL,
  ....
FROM table_name
TIME_DURATION BY(column2) FILLING_METHOD

Then explain every concepts in the syntax:

  • RANGE_EXPRESSION
  • RANGE keyword
  • TIME_INTERVAL
    .....

@nicecui
Copy link
Collaborator

nicecui commented Oct 13, 2023

Can you add a link to this document from the SELECT document?

@Taylor-lagrange
Copy link
Contributor Author

done @nicecui

@beryl678 beryl678 merged commit 4142bb1 into GreptimeTeam:main Oct 18, 2023
3 checks passed
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.

None yet

5 participants