You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.
Hi there - thanks for your work on this, it looks really useful!
However, I hit a snag when trying to use this with a database that has the postgis extension, and geometry data.
I get a lot of errors saying things like "Did not recognize type 'geometry'..." followed by the following error:
"Did not recognize type '%s' of column '%s'" % (attype, name)
Traceback (most recent call last):
File "/usr/bin/rdbms-subsetter", line 8, in
sys.exit(generate())
File "/usr/lib/python3.6/site-packages/subsetter.py", line 641, in generate
source = Db(args.source, args, schemas)
File "/usr/lib/python3.6/site-packages/subsetter.py", line 243, in init
fix_postgres_array_of_enum(self.conn, tbl)
File "/usr/lib/python3.6/site-packages/dialects/postgres.py", line 45, in fix_postgres_array_of_enum
col_str = str(col.type)
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/type_api.py", line 607, in str
return str(self.compile())
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/type_api.py", line 590, in compile
return dialect.type_compiler.process(self)
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/compiler.py", line 400, in process
return type_._compiler_dispatch(self, **kw)
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 92, in compiler_dispatch
return meth(self, **kw)
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/compiler.py", line 3387, in visit_null
"type on this Column?" % type
sqlalchemy.exc.CompileError: Can't generate DDL for NullType(); did you forget to specify a type on this Column?
I wondered if you had any advice on this. Can this code be massaged into working with this kind of db, and if so how can it be done?
Many thanks for your help.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there - thanks for your work on this, it looks really useful!
However, I hit a snag when trying to use this with a database that has the postgis extension, and geometry data.
I get a lot of errors saying things like "Did not recognize type 'geometry'..." followed by the following error:
"Did not recognize type '%s' of column '%s'" % (attype, name)
Traceback (most recent call last):
File "/usr/bin/rdbms-subsetter", line 8, in
sys.exit(generate())
File "/usr/lib/python3.6/site-packages/subsetter.py", line 641, in generate
source = Db(args.source, args, schemas)
File "/usr/lib/python3.6/site-packages/subsetter.py", line 243, in init
fix_postgres_array_of_enum(self.conn, tbl)
File "/usr/lib/python3.6/site-packages/dialects/postgres.py", line 45, in fix_postgres_array_of_enum
col_str = str(col.type)
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/type_api.py", line 607, in str
return str(self.compile())
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/type_api.py", line 590, in compile
return dialect.type_compiler.process(self)
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/compiler.py", line 400, in process
return type_._compiler_dispatch(self, **kw)
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 92, in compiler_dispatch
return meth(self, **kw)
File "/usr/lib64/python3.6/site-packages/sqlalchemy/sql/compiler.py", line 3387, in visit_null
"type on this Column?" % type
sqlalchemy.exc.CompileError: Can't generate DDL for NullType(); did you forget to specify a type on this Column?
I wondered if you had any advice on this. Can this code be massaged into working with this kind of db, and if so how can it be done?
Many thanks for your help.
The text was updated successfully, but these errors were encountered: