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

replace_parameters: fix accessing arg if there is no primitive #112

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

gcampax
Copy link
Contributor

@gcampax gcampax commented Nov 5, 2019

If we're replacing inside the filter of a join, there is no
current primitive (because can come from either primitive), so
"slot.primitive" is null.
Instead, we can access the argument directly from the slot.
Use either the soon-to-be-added public "arg" property of the slot,
or the private "_arg" property, and fall back to trying the prim
anyway if we have one.

Fixes #111

If we're replacing inside the filter of a join, there is no
current primitive (because can come from either primitive), so
"slot.primitive" is null.
Instead, we can access the argument directly from the slot.
Use either the soon-to-be-added public "arg" property of the slot,
or the private "_arg" property, and fall back to trying the prim
anyway if we have one.
@gcampax gcampax added the bug Something isn't working label Nov 5, 2019
@gcampax gcampax requested a review from sileix November 5, 2019 02:34
Copy link
Member

@sileix sileix left a comment

Choose a reason for hiding this comment

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

lgtm

@gcampax gcampax merged commit ee2ee9d into master Nov 5, 2019
@gcampax gcampax deleted the wip/issue-111 branch November 5, 2019 18:19
gcampax added a commit that referenced this pull request Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Augmentation is failing in almond-cloud staging
2 participants