-
Notifications
You must be signed in to change notification settings - Fork 1
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
Enable Multiple Data Sources #109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having some trouble testing locally. Main thing is that when I use two different source files that should have the same columns, it shows up like this with null columns:
The data from these two sources came from the same file, I just downloaded them as two separate files and then re-selected them each as datasources in the same query
Also, if I add a third source I get
Error: Parser Error: syntax error at or near "JOIN"
LINE 5: ...,355,118,721"."File Path") AS "File Path"
FROM "file-selection-Tue...
@@ -578,7 +608,7 @@ const replaceDataSourceLogic = createLogic({ | |||
deps.ctx.replaceDataSourceAction = deps.action; | |||
const queries = selectionSelectors.getQueries(deps.getState()); | |||
const updatedQueries = queries.map((query) => { | |||
if (query.parts.source?.name !== replacementDataSource.name) { | |||
if (query.parts.sources[0]?.name !== replacementDataSource.name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't load for me locally until I put query.parts.source?.[0]?.name
. It's possible that this was just a first time load error?
I'm now able to select, filter, group on multiple data sources, both web and desktop. Still having issues with downloading manifests:
Desktop:
|
This should all be fixed now. |
Description
This changeset enables users to select more than one data source in a single query. This is largely a proof-of-concept implementation of this feature as I think we could spend more time to make this much more performant like by perhaps creating views that are representations of a query's data sources.
How to review
Most of the changes to look for are in the SQLBuilder & logics.tsx
Testing
Tested on desktop and in the web adding various types of data source combination and performing queries.