-
Notifications
You must be signed in to change notification settings - Fork 23
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
Data Structure in influxdb and timescaledb are different #71
Comments
Hello @komal-lunkad. Yes Outflux exports the time column from InfluxDB as
|
Thank you for the answer @blagojts. |
You should take a look at the You can implement your own transformer that will run between extraction from InfluxDB and ingestion in TimescaleDB. The Then you just need to invoke it when the migration pipes are created
You might add support for array data types, and that's a bit more tricky (not complex, just have to modify multiple files). Start with https://github.com/timescale/outflux/blob/develop/internal/idrf/data_type.go IDRF stands for intermediate data representation format and its what Outflux uses to keep track of the data types and which columns are present in a data set. After you add the array data type in the enum you might need to update all functions referencing it |
@blagojts We have tables in our influxdb with the default timestamp and want to migrate to timescaldb to a table with timestamptz. You said that outflux exports the time column as timestamptz, but that's not what we got when we migrated, we got timestamp. We have other tables in timescaledb already in timestamptz so we are trying to find out how to best integrate the two to do operations mixing them. In the code of outflux you do distinguish between timestamp and timestamptz, how can we tell the migration to use timestamptz? |
Following up @polmonso comment, we got this error message:
|
bump? |
I ran into the same issue. I was able to resolve it by letting outflux create the schema, and then alter the time column type afterwards using:
|
In my influx measurement, the timestamp tag data type is timestamp and that in timescale it is timestamp with timezone.
Also , there us one more field which is of type string seperated by commas and I want to convert it into an array in timescale.
Please help me in which file should I make the required chanages and how to run the code for the same.
The text was updated successfully, but these errors were encountered: