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

cannot convert time column with nanoseconds #49

Open
freeznet opened this issue May 5, 2019 · 3 comments
Open

cannot convert time column with nanoseconds #49

freeznet opened this issue May 5, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@freeznet
Copy link
Contributor

freeznet commented May 5, 2019

trying to use outflux to migrate influxdb data to timescaledb, but when transferring to timescaledb, the time column only have ms precision instead of ns. According to timescaledb docs, the time column should be long int, but how can i create hypertable with outflux to support ns?

@atanasovskib atanasovskib self-assigned this May 5, 2019
@atanasovskib atanasovskib added the enhancement New feature or request label May 5, 2019
@atanasovskib
Copy link
Contributor

Thank you for your feedback. The current implementation of Outflux can create only a timestamp type column for the time dimension. This way TimescaleDB's ability to use a long int for a partitioning column (such as an epoch time with nanoseconds) is not supported.

We will add a configuration option that will allow you to select the type of partitioning column

@atanasovskib atanasovskib added this to the 0.2.0 milestone May 5, 2019
@furushchev
Copy link

Is there any update on this issue? We're also planning to migrate to timescaledb from influxdb and the only concern is precision of timestamp ( microseconds vs nanoseconds )

@haydenflinner
Copy link

@furushchev Is there any update on this issue? We're also planning to migrate to timescaledb from influxdb and the only concern is precision of timestamp ( microseconds vs nanoseconds )

It looks like Timescale supports using int types as the 'timestamp' column, but will have to specify chunk_time_interval in a less pretty form, and probably other gotchas will pop up eventually.
I think a better solution would be integration (or inclusion of) a blessed extension like https://github.com/fvannee/timestamp9 into TimeScale. Then outflux can use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants