-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
How do I join two tables in Superset ? I need to combine the result in order to visualize the data #8645
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
You can use SQL Lab (+new button > SQL Query) to write any sql you want, and then hit the "Explore" button to make a chart from your query. |
You may also want to create a view a view in your database and use this view as a datasource. It's effectively the same as the solution above, except the view is stored in the database and can/could be reused outside of Superset |
I'm not sure that I understand SQL Lab View correctly. It doesn't create SQL view, right? I checked that in my database, but I didn't find them. It took me a long time to discover that with a button Vizualize I can create graph from multiple tables. Before that I was sure that I had to create views in SQL to achieve this. |
Yes It doesnt create sql view.!!
…On Tue, Nov 26, 2019 at 8:46 PM Bartek Michalak ***@***.***> wrote:
I'm not sure that I understand SQL Lab View correctly. It doesn't create
SQL view, right?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8645>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL5J2MPLMUQNNVDYL3YTELTQVU4VBANCNFSM4JRIW57Q>
.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
The "Explore" button in SQL Lab is effectively creating a Superset-managed view. The "datasource" object that gets created stores that SQL in its definition, and runs queries against it the same way that it would against a table, but as a subquery. We did a lot of design work as part of SIP-34 that should make this flow much more clear. |
Is this still open? like to work on this since it aligns with a current requirement we are having |
I don't think we need to do something here. There are 2 options
Number 2 is preffered option mostly as it pushes data prep to Database itself and make it available for other BI platforms too. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
Can the 2nd option be done with superset? Or does the user have to log on the backend database and create a view on it? |
So... if I have a fact table with dimensions, I have to create a super view with all the fields I will be using? It's the only way? |
You can do that right from Superset! You just need to make sure the "Allow CREATE VIEW AS" is enabled for that specific database. |
it is still not an efficient solution because:
|
This write up explains a bit more where Superset stands: |
I'll add that there are many tools and techniques to do this lower in the stack, including semantic layers like Cube or DB-like tools such as Trino. It might also be worth mentioning here that Superset does have an experimental in-memory "meta database" that one can use to join... but I wouldn't use it on large joins... it's more for lighter tasks like CSV-driven workflows. |
How do I join two tables in Superset ? I need to combine the result in order to visualize the data
The text was updated successfully, but these errors were encountered: