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

[query] Fix Graphite aliasByNode when sub-expr returns a pattern in an arg of fn that is itself the name of a fn #3655

Merged

Conversation

robskillington
Copy link
Collaborator

What this PR does / why we need it:

Previously compiler was trying to compile any fetch or pattern that matches name of a function, this caused sub-expressions that matched the name of a function (e.g. identity) to cause aliasByNode to fail since they wouldn't compile as sub-expressions as the pattern would tried to be compiled to a function arg but would fail.

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

@robskillington robskillington changed the title [query] Fix Graphite aliasByNode when sub-expr returns a pattern to arg of fn that is itself the name of a fn [query] Fix Graphite aliasByNode when sub-expr returns a pattern in an arg of fn that is itself the name of a fn Aug 11, 2021
@robskillington robskillington enabled auto-merge (squash) August 11, 2021 12:06
@codecov
Copy link

codecov bot commented Aug 11, 2021

Codecov Report

Merging #3655 (0d1ee84) into master (f9b9e76) will decrease coverage by 0.2%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #3655     +/-   ##
========================================
- Coverage    56.4%   56.1%   -0.3%     
========================================
  Files         551     551             
  Lines       61876   61876             
========================================
- Hits        34909   34772    -137     
- Misses      23854   23983    +129     
- Partials     3113    3121      +8     
Flag Coverage Δ
aggregator 57.1% <ø> (ø)
cluster ∅ <ø> (∅)
collector 58.4% <ø> (ø)
dbnode 60.7% <ø> (-0.4%) ⬇️
m3em 46.4% <ø> (ø)
metrics 19.8% <ø> (ø)
msg 74.3% <ø> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9b9e76...0d1ee84. Read the comment docs.

Copy link
Collaborator

@yyin-sc yyin-sc left a comment

Choose a reason for hiding this comment

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

LGTM

@robskillington robskillington merged commit 3b3eb41 into master Aug 11, 2021
@robskillington robskillington deleted the r/fix-alias-by-node-subpattern-matching-fn-name branch August 11, 2021 17:16
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.

2 participants