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

Error trying to convert from PostgreSQL to Sqlite #13

Open
sfermigier opened this issue Jan 21, 2014 · 1 comment
Open

Error trying to convert from PostgreSQL to Sqlite #13

sfermigier opened this issue Jan 21, 2014 · 1 comment

Comments

@sfermigier
Copy link

I have data in a Postgres DB that I'd like to inject into Sqlite using a Pipeline.

source = open_store("sql", 'postgres://....')
#target = open_store("csv", "./data")
target = open_store("sql", 'sqlite:///data/data.sql')

stores = {
  'source': source,
  'target': target,
}
p = Pipeline(stores=stores)
p.source('source', 'xxx')
p.create('target', 'xxx')
p.run()

I get the following error:

sqlalchemy.exc.CompileError: (in table 'xxx', column 'yyy'): Compiler <sqlalchemy.dialects.sqlite.base.SQLiteTypeCompiler object at 0x102c10910> can't render element of type <class 'sqlalchemy.dialects.postgresql.base.DOUBLE_PRECISION'>
@Stiivi
Copy link
Owner

Stiivi commented Jan 31, 2014

Seems like a "concrete storage type" issue. Bubbles is trying to preserve the concrete storage type whenever possible. Some kind of data type hinting would be required (that's why this issue is marked also as "enhancement").

There is no clean solution for this problem at this moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants