apache / horaedb

Apache HoraeDB (incubating) is a high-performance, distributed, cloud native time-series database.
https://horaedb.apache.org
Apache License 2.0
2.59k stars 204 forks source link

Support write/query via OpenTSDB API #904

Open jiacai2050 opened 1 year ago

jiacai2050 commented 1 year ago

Describe This Problem

Currently there are three query language supported in CeresDB: SQL/InfluxQL/PromQL. It would be great to also support OpenTSBD query API.

Proposal

There are many API in OpenTSDB, the following two API are most important, so we can first implement those.

Additional Context

No response

parkma99 commented 1 year ago

I would like to work query api, I am newer fo this project, Could you give me some suggestion to start?😊

jiacai2050 commented 1 year ago

Thanks for you interests, let us know when you have any problems.

Generally speaking, you need to convert opentsdb query syntax to datafusion plan, you can refer how InfluxQL is implemented here:

parkma99 commented 1 year ago

I find it's very hard to me current 😢😢,I give up to others this issue.

jiacai2050 commented 1 year ago

@parkma99 😅 Thanks anyway, you can try other issue first.

jiacai2050 commented 1 year ago

This docs explain how opentsdb query is executed:

Filtering

Grouping

Downsampling

Interpolation

Aggregation

Rate Conversion

Functions

Expressions

Understanding the order of operations is important. When returning query results the following is the order in which processing takes place.