apache / streampipes

Apache StreamPipes - A self-service (Industrial) IoT toolbox to enable non-technical users to connect, analyze and explore IoT data streams.
https://streampipes.apache.org
Apache License 2.0
566 stars 174 forks source link

Data Type Change in Adapter Causes Data Storage Failure in InfluxDB #2954

Open tenthe opened 1 week ago

tenthe commented 1 week ago

Body

Problem

If you edit the adapter and change the data type, the data will no longer be saved in InfluxDB.

How to Reproduce:

  1. Create an adapter with a temperature field as an integer and create a pipeline to store it in the data lake.
  2. Change the data type of the temperature field to double.
  3. An exception appears in the data lake sink because it tries to write into the same measurement "temperature" with two different data types.

StreamPipes Committer

I acknowledge that I am a maintainer/committer of the Apache StreamPipes project.

tenthe commented 1 week ago

When data is written to the data lake, an entry is created in CouchDB with the schema information and the data. If a user adjusts the event schema of an adapter, this is also updated in CouchDB, but the old data remains unchanged in InfluxDB.

Problem

Potential Solutions

Current Workaround for Users