Skip to content
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

fix: do not error when there are unused source nodes #6924

Merged
merged 1 commit into from
Oct 4, 2020
Merged

Conversation

domoritz
Copy link
Member

@domoritz domoritz commented Oct 3, 2020

fixes #6897

@domoritz domoritz requested review from arvind, jheer and a team October 3, 2020 23:03
@jheer
Copy link
Member

jheer commented Oct 4, 2020

LGTM, though I don't have any deep familiarity with the dataflow optimization here. I assume the error being thrown prior to this patch is not really an "error", based on your comments regarding subsequent clean-up?

@domoritz
Copy link
Member Author

domoritz commented Oct 4, 2020

The problematic spec doesn't have a dataset at the root view (it defines the same dataset in the child views). Vega-Lite instantiated an empty source node for the root, which then was removed by the optimizer. The problem was that source nodes need to be removed from the list of sources, not a tree of nodes. The code change prevents source nodes from being removed the wrong way.

@domoritz domoritz merged commit b1a5312 into master Oct 4, 2020
@domoritz domoritz deleted the dom/fix-6897 branch October 4, 2020 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Concat spec raises error: Source nodes are roots and cannot be removed.
2 participants