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

isHypertableQueryTemplate incorrect for docker image timescale/timescaledb:2.0.0-pg12 #85

Closed
rafaelrpinto opened this issue Jan 27, 2021 · 3 comments

Comments

@rafaelrpinto
Copy link

Hi,
While migrating the data from influxdb I can transfer the schema correctly using outflux schema-transfer but outflux migrate using the schema strategy CreateIfMissing fails with the following error:

2021/01/26 23:57:39 pipe_post: pipe_post: could not prepare ingestor
could not check if table post is hypertable

Since the table post is a hypertable I digged into the code and found that the failed validation uses the query isHypertableQueryTemplate which is :

SELECT EXISTS (
		    						SELECT 1
								 	FROM timescaledb_information.hypertable
									 WHERE  table_schema = 'public' AND table_name='post')

However the hypertable table is not on timescaledb_information schema, but it is on _timescaledb_catalog.

So currently the only option for us to use outflux is to use the schema strategy DropAndCreate.

Thanks.

@gubbin
Copy link

gubbin commented Mar 26, 2021

I have a fork with your query fix at https://github.com/hatchdata/outflux but it only works with newer TimescaleDB versions. It would need some version logic before it would be ready for a PR.

@wiebeytec
Copy link

I run into the same issue with outlux version 0.2.0. Timescaledb version 2 uses timescaledb_information.hypertables and hypertable_name).

There is a blocked pull request: #89

@JamesGuthrie
Copy link
Contributor

Fixed in #89

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

No branches or pull requests

4 participants