You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2023/07/19 23:19:13 UTC
[superset] branch fix_rds updated: Fix for no schema
This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch fix_rds
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/fix_rds by this push:
new 849b7a36f5 Fix for no schema
849b7a36f5 is described below
commit 849b7a36f51a767d14d3ed48d5ffb363d10322ad
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Wed Jul 19 16:04:15 2023 -0700
Fix for no schema
---
superset/db_engine_specs/postgres.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/db_engine_specs/postgres.py b/superset/db_engine_specs/postgres.py
index 3210a6c9aa..21b79ba6ec 100644
--- a/superset/db_engine_specs/postgres.py
+++ b/superset/db_engine_specs/postgres.py
@@ -270,7 +270,7 @@ class PostgresEngineSpec(PostgresBaseEngineSpec, BasicParametersMixin):
be anything, and we would have to block users from running any queries
referencing tables without an explicit schema.
"""
- return [f'set search_path = "{schema}"']
+ return [f'set search_path = "{schema}"'] if schema else []
@classmethod
def get_allow_cost_estimate(cls, extra: dict[str, Any]) -> bool: