You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "mdeshmu (via GitHub)" <gi...@apache.org> on 2023/07/19 14:07:32 UTC
[GitHub] [superset] mdeshmu commented on pull request #24739: [WIP] fix: `search_path` in RDS
mdeshmu commented on PR #24739:
URL: https://github.com/apache/superset/pull/24739#issuecomment-1642158085
type hint in get_prequeries throws an error with Python 3.9
```
File "/app/superset/db_engine_specs/postgres.py", line 257, in PostgresEngineSpec
catalog: str | None = None,
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
```
So I changed it to `Optional[str] = None` in my local code. Then I get the below errors:
1.
```
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/pool/base.py", line 1086, in __getattr__
return getattr(self.dbapi_connection, key)
AttributeError: 'psycopg2.extensions.connection' object has no attribute 'execute'
```
2.
```
File "/app/superset/models/core.py", line 524, in get_raw_connection
for prequery in self.db_engine_spec.get_prequeries(schema=schema):
TypeError: get_prequeries() missing 1 required positional argument: 'catalog'
```
Happy to test further once these are addressed :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org