Skip to content

Dataflow: Fix flow-feature bug for parameterless static functions #15632

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

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

aschackmull
Copy link
Contributor

The flow features FeatureHasSourceCallContext and FeatureEqualSourceSinkCallContext didn't work for parameterless static functions. This bug is fairly obscure, since most use-cases of those two features expect the source to be a parameter, and that's why it has gone undetected for quite some time.

@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Feb 16, 2024
@aschackmull aschackmull requested a review from a team as a code owner February 16, 2024 10:44
Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, and indeed fixes the problem we were seeing 🎉

Do you think the removal of this small optimization warrants a DCA run?

@aschackmull
Copy link
Contributor Author

Do you think the removal of this small optimization warrant a DCA run?

I was about to say no (famous last words), but looking at the dependency, there's actually likely to be many cases where I would expect the size estimate of getLocalCallContext to jump from 1 to 2. A size estimate of 1 is likely special in terms of what the join-orderer might do, so it's not inconceivable that some join-order could be affected.

@aschackmull
Copy link
Contributor Author

ping @bdrodes

@aschackmull aschackmull merged commit d1d213d into github:main Feb 19, 2024
@aschackmull aschackmull deleted the dataflow/flowfeature-bugfix branch February 19, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DataFlow Library Java no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants