Skip to content

[IOTDB-842] Better Export/Import-CSV Tool#3820

Merged
HTHou merged 44 commits intoapache:masterfrom
xuanronaldo:xuanronaldo
Sep 22, 2021
Merged

[IOTDB-842] Better Export/Import-CSV Tool#3820
HTHou merged 44 commits intoapache:masterfrom
xuanronaldo:xuanronaldo

Conversation

@xuanronaldo
Copy link
Copy Markdown

Description

Update the Export/Import-CSV tool.

Import common-csv

Using common-csv to do CSV file reading and writing.

Using Java stream

Using Java stream to simplify code.

The New Import Tool

The new import tool support 4 data formats. Including the data aligned by time or device, with or without data type of headers. Besides, you can specify a directory to save file which save failed lines.

The New Export Tool

The new export tool can print data type of timeseries in the head line of CSV file. Besides, you can directly specify a query comman that you want to execute by setting parameter.

xuanronaldo added 11 commits August 13, 2021 16:34
1.add the function of device aligned format importing.
2.parse the data type from the csv header.
3.query the data type from IoTDB.
4.use insertRecordsOfOneDevice API to insert data.
5.output the failed line to a new csv file.
1.add parameter "-fd" to specify a directory to save the failed file.
1.add annotations.
1.using google format plugin to reformat the code.
2.recoding the ExportCsv.java to simplify code and implement headerType definition.
1.using google format plugin to reformat the code.
Copy link
Copy Markdown

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

@xuanronaldo xuanronaldo changed the title [IOTDB-xxx] Better Export/Import-CSV Tool [IOTDB-842] Better Export/Import-CSV Tool Aug 24, 2021
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 24, 2021

Coverage Status

Coverage decreased (-0.0008%) to 67.283% when pulling a7017db on xuanronaldo:xuanronaldo into 8ec3e12 on apache:master.

@xuanronaldo xuanronaldo requested a review from HTHou September 14, 2021 07:09
@xuanronaldo xuanronaldo requested a review from HTHou September 14, 2021 08:58
@xuanronaldo xuanronaldo requested a review from HTHou September 16, 2021 09:56
@HTHou HTHou merged commit c75a71f into apache:master Sep 22, 2021
cigarl pushed a commit to cigarl/iotdb that referenced this pull request Sep 30, 2021
* fix the bug that the program can not run at background.
Co-authored-by: Haonan <hhaonan@outlook.com>
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.

4 participants