Skip to content

Conversation

@jun0315
Copy link
Contributor

@jun0315 jun0315 commented Sep 14, 2021

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:

  1. Support influxdb compatible insertion function.

  2. Support the basic query function compatible with incluxdb, including tag value filtering, file value filtering and time value filtering.

  3. 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:

  1. 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.

  2. Complete the data schema mapping of the two protocols at the code level.

  3. Complete the data structure conversion of query results.

  4. Complete the g4 syntax of antlr4 of the query SQL of inluxdb and the generation of the corresponding traversal data structure.

Copy link

@github-actions github-actions bot left a 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.

@coveralls
Copy link

coveralls commented Sep 14, 2021

Coverage Status

Coverage increased (+0.2%) to 67.777% when pulling 32a899a on jun0315:influxdb-connect into 96b5269 on apache:master.

@HTHou HTHou changed the title Compatible influxdb protocol [IOTDB-1689] Compatible influxdb protocol Sep 15, 2021
@mychaow mychaow requested a review from liutaohua September 15, 2021 11:55
@jun0315
Copy link
Contributor Author

jun0315 commented Sep 26, 2021

@SteveYurongSu Thanks for your review,I have fixed the above problem.

@jun0315
Copy link
Contributor Author

jun0315 commented Sep 27, 2021

@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

@chengjianyun
Copy link
Contributor

Is there any design docs to help understand the implementation?

@jun0315
Copy link
Contributor Author

jun0315 commented Sep 30, 2021

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

@jun0315 jun0315 changed the title [IOTDB-1689] Compatible influxdb protocol [IOTDB-1797] Compatibility of Apache IoTDB with InfluxDB——Frame construction Oct 6, 2021
@jun0315 jun0315 changed the title [IOTDB-1797] Compatibility of Apache IoTDB with InfluxDB——Frame construction [IOTDB-1689] Compatible influxdb protocol Oct 6, 2021
@SteveYurongSu
Copy link
Member

We have disassembled this PR into several small PRs.

For more details, see https://issues.apache.org/jira/browse/IOTDB-1689

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.

5 participants