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

DeferredViewTable's filter ordering logic needs to respect view side effects #3122

Merged
merged 5 commits into from
Dec 1, 2022

Conversation

nbauernfeind
Copy link
Member

@nbauernfeind nbauernfeind commented Nov 29, 2022

Fixes #2701. This fix requires the fix for #1683 in #3120; this fix is the first commit in the PR.

DeferredViewTable was being reckless when looking for column renames. We now look for multiple renames including renames of otherwise deferred columns. Additionally, abstract condition filter was not generating compilable code if two columns were renamed from the same source column. For example, source.update("A = X", "B = X").where("(A + B).length() > 0") would generate two local variables both named X in the filter, but still refer to them as A and B. Note that X in this context is a string -- but the only requirement is that the filter is an abstract condition filter.

I've added a few tests to catch both the original issue as well as other similar issues that I discovered during the spelunking process.

@nbauernfeind nbauernfeind added this to the Nov 2022 milestone Nov 29, 2022
@nbauernfeind nbauernfeind self-assigned this Nov 29, 2022
@nbauernfeind nbauernfeind removed the request for review from devinrsmith November 29, 2022 17:58
@nbauernfeind nbauernfeind added the ReleaseNotesNeeded Release notes are needed label Dec 1, 2022
@nbauernfeind nbauernfeind merged commit 9f875a1 into deephaven:main Dec 1, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working NoDocumentationNeeded query engine ReleaseNotesNeeded Release notes are needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

where() fails after renaming columns on table read from parquet file
2 participants