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

[processor/transform] Added nil to grammar #11150

Merged
merged 2 commits into from
Jun 20, 2022

Conversation

TylerHelmuth
Copy link
Member

Description:
This PR adds nil to the grammar as a literal, in a reduced manner. nil can be used as a literal but cannot be used as a replacement for maps and slices in function calls. The main goal is to allow nil checks in conditions, such as ... where attributes["test"] == nil

Link to tracking Issue:
Closes #11087

Testing:
Updated unit tests

Documentation:
Updated README

@TylerHelmuth
Copy link
Member Author

/cc @anuraaga

@djaglowski djaglowski merged commit 02f416b into open-telemetry:main Jun 20, 2022
@TylerHelmuth TylerHelmuth deleted the issue-11087 branch June 20, 2022 14:47
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.

[processor/transform] Add 'nil' type to the grammar
3 participants