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

InfluxDB: Add adapter to influxio, implementing ctk load table influxdb2://... #77

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

amotl
Copy link
Member

@amotl amotl commented Nov 12, 2023

About

This patch adds an adapter to the influxio package, to facilitate data transfers from InfluxDB v2 and InfluxDB line protocol.

Synopsis

# Define target to be CrateDB schema=testdrive, table=demo.
export CRATEDB_SQLALCHEMY_URL=crate://crate@localhost:4200/testdrive/demo

# Load data from organization=example, token=token, bucket=testdrive, measurement=demo.
ctk load table influxdb2://example:token@localhost:8086/testdrive/demo

# Verify data has been transferred.
crash --command "SELECT * FROM testdrive.demo;"

Copy link

codecov bot commented Nov 12, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Files Coverage Δ
cratedb_toolkit/io/influxdb.py 100.00% <100.00%> (ø)
cratedb_toolkit/testing/testcontainers/cratedb.py 100.00% <100.00%> (ø)
...ratedb_toolkit/testing/testcontainers/influxdb2.py 100.00% <100.00%> (ø)
cratedb_toolkit/util/database.py 93.06% <100.00%> (+0.28%) ⬆️
cratedb_toolkit/io/cli.py 86.15% <84.21%> (-1.61%) ⬇️

📢 Thoughts on this report? Let us know!

@amotl amotl changed the title InfluxDB: Add adapter for influxio InfluxDB: Add adapter to influxio Nov 12, 2023
@amotl amotl force-pushed the amo/influxio branch 2 times, most recently from 7d47a28 to d3b4410 Compare November 12, 2023 18:28
@amotl amotl requested review from seut and matriv November 12, 2023 19:41
@amotl amotl marked this pull request as ready for review November 12, 2023 19:41
@amotl amotl changed the title InfluxDB: Add adapter to influxio InfluxDB: Add adapter to influxio, implementing ctk load table influxdb2://... Nov 13, 2023
@amotl amotl changed the title InfluxDB: Add adapter to influxio, implementing ctk load table influxdb2://... InfluxDB: Add adapter to influxio, implementing ctk load table influxdb2://... Nov 13, 2023
Base automatically changed from amo/cloud-first to main November 13, 2023 08:11
@amotl amotl merged commit b7b03e9 into main Nov 13, 2023
22 checks passed
@amotl amotl deleted the amo/influxio branch November 13, 2023 08:39
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.

1 participant