-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Is there support to join across multiple Snowflake databases? #7568
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Can you describe in more detail what you mean by join across databases? I believe writing a query in SQL Lab where the table name is prefixed by |
@villebro So let's say I have two databases - one called |
Ok that's interesting. I can look into this. I assume you have all the right permissions, and have been able to execute the same query via the SF Web UI? |
@villebro Got it. I was trying to use the name I gave the source in superset as the database name, rather than the actual database name in snowflake. When I do the latter it works. Appreciate the help! |
Hi @villebro , @chintanparikh , Does this work for tables of different database types . i.e one is Postgres and the other is oracle. I am facing error while joining tables belonging to different databases. |
I am also facing this in the case of Postgres ,Could anyone help me out ? |
I have a Snowflake data warehouse. This Snowflake data warehouse has multiple databases inside it. I would like to join across these databases. Snowflake does support this (https://support.snowflake.net/s/question/0D50Z00007AptG4SAJ/is-there-anyway-to-achieve-cross-db-join-in-snowflake), so I'm wondering how I can support this inside Superset.
I think the issue is that Superset treats the different Snowflake databases as separate Snowflake databases rather than recognizing they are all in Snowflake and using the Snowflake engine to run queries.
Trying to add a Snowflake data source with no database selected almost works - it's able to pull out all the tables from each database (not ideal because of conflicts, but it will work for now). However, when I try to query in SQL Lab it says there is no active database selected.
Would love some advice here.
The text was updated successfully, but these errors were encountered: