-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[IOTDB-1689] Compatible influxdb protocol #3959
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, this is your first pull request in IoTDB project. Thanks for your contribution! IoTDB will be better because of you.
iotdb-influxdb/src/main/antlr4/org/apache/iotdb/influxdb/qp/sql/InfluxDB.g4
Outdated
Show resolved
Hide resolved
iotdb-influxdb/src/main/antlr4/org/apache/iotdb/influxdb/qp/sql/InfluxDB.g4
Outdated
Show resolved
Hide resolved
|
@SteveYurongSu Thanks for your review,I have fixed the above problem. |
|
@SteveYurongSu Thanks for your review, I have fixed the above problem. I also carefully checked the naming convention of IoTDB to avoid some problems. Please take a look again :D |
iotdb-influxdb/src/test/java/org/apache/iotdb/influxdb/IoTDBInfluxDBTest.java
Outdated
Show resolved
Hide resolved
|
Is there any design docs to help understand the implementation? |
Thank you for your attention! Design docs is here: https://github.com/jun0315/iotdb/blob/influxdb-connect/docs/zh/UserGuide/API/IoTDB-InfluxDB.md |
…uxdb-connect-steve
refactor module structure
|
We have disassembled this PR into several small PRs. For more details, see https://issues.apache.org/jira/browse/IOTDB-1689 |
At present, many users use influxdb as a time series database. If users change to another database, there will be a relatively high migration cost. The PR goal is to develop an adapter that is compatible with the protocol of influxdb.
Project requirements come from https://summer.iscas.ac.cn/#/org/prodetail/210070151
The objectives actually achieved include:
Support influxdb compatible insertion function.
Support the basic query function compatible with incluxdb, including tag value filtering, file value filtering and time value filtering.
Support some advanced functions compatible with incluxdb, including common count, first, last, Max, mean, median, min, mode, spread, StdDev and sum functions.
The work completed at the code design level includes:
Firstly, the performance of two relational mapping schemes is tested (including large-scale 20W data insertion and query test code), and finally a better scheme is determined for development.
Complete the data schema mapping of the two protocols at the code level.
Complete the data structure conversion of query results.
Complete the g4 syntax of antlr4 of the query SQL of inluxdb and the generation of the corresponding traversal data structure.