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

Fix CQL Function Argument Hiding #835

Merged
merged 2 commits into from
Nov 12, 2022
Merged

Conversation

alexanderkiel
Copy link
Member

I added CQL functions in #501. Function arguments are added to the scope. However in queries, I had an optimization that overrode the scope with a single value if the scope was empty. The problem was that I did not pay attention to the function argument scope. To keeps things simple, I just removed the optimization.

@alexanderkiel alexanderkiel self-assigned this Nov 11, 2022
@alexanderkiel alexanderkiel added module:cql bug Something isn't working labels Nov 11, 2022
@alexanderkiel alexanderkiel added this to the v0.18.4 milestone Nov 11, 2022
@codecov
Copy link

codecov bot commented Nov 11, 2022

Codecov Report

Merging #835 (7903fba) into develop (91b79a1) will increase coverage by 0.01%.
The diff coverage is 82.22%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #835      +/-   ##
===========================================
+ Coverage    93.87%   93.88%   +0.01%     
===========================================
  Files          232      232              
  Lines        14633    14626       -7     
  Branches       383      384       +1     
===========================================
- Hits         13736    13732       -4     
+ Misses         514      510       -4     
- Partials       383      384       +1     
Impacted Files Coverage Δ
modules/cql/src/blaze/elm/compiler/queries.clj 76.14% <80.95%> (+1.26%) ⬆️
modules/cql/src/blaze/elm/compiler/macros.clj 95.94% <100.00%> (+0.05%) ⬆️
...s/cql/src/blaze/elm/compiler/structured_values.clj 76.81% <100.00%> (-0.66%) ⬇️
...cql/src/blaze/elm/compiler/date_time_operators.clj 77.88% <0.00%> (-0.49%) ⬇️

I added CQL functions in #501. Function arguments are added to the
scope. However in queries, I had an optimization that overrode the scope
with a single value if the scope was empty. The problem was that I did
not pay attention to the function argument scope. To keeps things
simple, I just removed the optimization.
@alexanderkiel alexanderkiel merged commit 4124961 into develop Nov 12, 2022
@alexanderkiel alexanderkiel deleted the remove-single-scope branch November 12, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:cql
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant