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

Make column masks insensitive to relation field order #15443

Closed

Conversation

atanasenko
Copy link
Member

Description

Changes the way column masks are applied from an incremental buildup of nested ProjectNode instances to a single projection for all fields. It's only when there are multiple masks for the same field will it nest multiple projections.
This allows masks to reference original fields without interfering with each other as much as possible.

Additional context and related issues

Release notes

( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@martint
Copy link
Member

martint commented Dec 16, 2022

How does it relate to #14420 ?

Also, see my comments in that discussion about multiple masks for the same column: #14420 (comment)

@atanasenko
Copy link
Member Author

How does it relate to #14420 ?

Oh, haven't seen this one. The code in this one is a combination of both, it attempts to create as few projections as possible, but retains support for multiple masks per field. It does that by combining all second masks into a second projection, third ones into third etc.

@findepi
Copy link
Member

findepi commented Dec 19, 2022

@atanasenko there was a force push to the master branch (per #15365 (comment)), so your PR appears as if containing some unrelated commits.
Can you please rebase to remove them?

Changes the way column masks are applied from an incremental buildup of
nested ProjectNode instances to a single projection for all fields. It's
only when there are multiple masks for the same field will it nest
multiple projections.
This allows masks to reference original fields without interfering with
each other as much as possible.
@atanasenko atanasenko force-pushed the at/columnmask-field-order branch from da56cf1 to df1c76b Compare December 20, 2022 14:00
@atanasenko
Copy link
Member Author

Closing in favor of #14420

@atanasenko atanasenko closed this Jan 9, 2023
@atanasenko atanasenko deleted the at/columnmask-field-order branch January 9, 2023 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants