Replies: 7 comments 1 reply
-
Possible useful tool: have a look at GeoAlchemy2 which could be used to parse the sqllab query instead of sqlalchemy? |
Beta Was this translation helpful? Give feedback.
-
@jo-chemla Any news on this? I'm running into the same issue.. |
Beta Was this translation helpful? Give feedback.
-
If anyone wants to contribute postgis support/drivers/docs, or anyone wants to open a SIP to introduce GeoAlchemy2 into Superset as an additional layer (perhaps alongside sqlalchemy?) that would be welcomed. Right now, this thread has been silent since last year, and doesn't seem to be a bug, per se. If you want, I'm happy to reopen this and convert it to a discussion to keep the ball rolling! |
Beta Was this translation helpful? Give feedback.
-
Thanks @rusackas for the ping, indeed not a bug and would therefore be happy to move this to a discussion/reopen, to eventually lead to a SIP. Improving superset support for geospatial databases via GeoAlchemy to enable PostGIS - indeed probably alongside sqlalchemy - would bring lots of users/orgs from geospatial communities a'd let them connect their DBs to superset for dashboarding and interactive exploration. Happy to get some directions or provide feedback on this matter |
Beta Was this translation helpful? Give feedback.
-
Yep, if we can connect to everything we do today and more, I think people would be all for it! Reopening and moving to a Discussion thread! |
Beta Was this translation helpful? Give feedback.
-
Here it is a new symptom that could speak about a version number problem that leads to different treatment at the moment of parsing any query including PostGIS functions o types.
|
Beta Was this translation helpful? Give feedback.
-
This appears to be a search path issue. If you qualify the PostGIS functions with the public schema (or the schema in which you created them) then there is no issue using them in my testing when I ran into this problem.
|
Beta Was this translation helpful? Give feedback.
-
A clear and concise description of what the bug is.
How to reproduce the bug
Apache Superset is installed via docker-compose. I'm connecting to one of my postgis DB through superset, but when in the SQL Lab in superset (or when computing additional columns), then it seems like the postgis extension is not installed since
SELECT PostGIS_Full_Version() or SELECT ST_AsGeoJSON(location) FROM db;
both result in an error,No function matches the given name and argument
. Is there a way to enable the postgis extension within superset? The location column stores the polygon/point in WKB format.What I've tried:
image: postgres:14
withimage: postgis/postgis:14-master
adduser superset
psql
, list db via\l
then connect to superset db via\c superset
CREATE EXTENSION postgis;
ST_xyz
functions should be supported within the sqllab and column creation.Actual results
ST_xyz
functions should be supported within the sqllab and column creation.Screenshots
Environment
(please complete the following information):
2.1.0
Beta Was this translation helpful? Give feedback.
All reactions