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

Bugfix. Maintain literal data type during function evaluation #12607

Merged
merged 3 commits into from
Mar 8, 2024

Conversation

shounakmk219
Copy link
Collaborator

Currently the ConstantExecutionNode stores the literal value as String which creates problems while dealing with boolean literals as the execution returns a String and ends up doing STRING.toInt (toInt as boolean has stored type as int)on a "true" value while it should be doing BOOLEAN.toInt instead.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.67%. Comparing base (59551e4) to head (0f56922).
Report is 92 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #12607      +/-   ##
============================================
- Coverage     61.75%   61.67%   -0.08%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2450      +14     
  Lines        133233   133745     +512     
  Branches      20636    20744     +108     
============================================
+ Hits          82274    82488     +214     
- Misses        44911    45148     +237     
- Partials       6048     6109      +61     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 27.69% <100.00%> (-34.02%) ⬇️
java-21 61.67% <100.00%> (+0.04%) ⬆️
skip-bytebuffers-false 61.62% <100.00%> (-0.12%) ⬇️
skip-bytebuffers-true 61.64% <100.00%> (+33.91%) ⬆️
temurin 61.67% <100.00%> (-0.08%) ⬇️
unittests 61.67% <100.00%> (-0.08%) ⬇️
unittests1 46.74% <0.00%> (-0.15%) ⬇️
unittests2 27.70% <100.00%> (-0.03%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

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

Good catch

@Jackie-Jiang Jackie-Jiang merged commit 499b661 into apache:master Mar 8, 2024
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants