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

Fixes list/bag ExprValue creation in plan evaluator #969

Merged
merged 2 commits into from
Jan 18, 2023
Merged

Conversation

rchowell
Copy link
Contributor

Relevant Issues

#966
#951

Description

Description is in 966 and agg finder fix describe in 951. Peeking the sequence caused it to be instantiated prematurely, so we'll use John's original (and simpler) method of adding a meta to determine which ExprValue to create. The other fixes (it stopped at least? can't say definitively because ... nondeterministic) some nondeterministic behavior we were seeing

Other Information

  • Updated Unreleased Section in CHANGELOG: [YES/NO]
    No

  • Any backward-incompatible changes? [YES/NO]
    No

  • Any new external dependencies? [YES/NO]
    No

License Information

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@rchowell rchowell requested a review from johnedquinn January 13, 2023 20:05
@codecov-commenter
Copy link

Codecov Report

Base: 83.11% // Head: 83.14% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (886b9d9) compared to base (f2ef065).
Patch coverage: 93.33% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #969      +/-   ##
============================================
+ Coverage     83.11%   83.14%   +0.02%     
- Complexity     1989     1992       +3     
============================================
  Files           218      219       +1     
  Lines         15269    15269              
  Branches       2731     2733       +2     
============================================
+ Hits          12691    12695       +4     
+ Misses         1769     1765       -4     
  Partials        809      809              
Flag Coverage Δ
EXAMPLES 80.42% <ø> (ø)
EXTENSIONS 92.85% <ø> (ø)
LANG 83.21% <93.33%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
...iql/lang/eval/physical/PhysicalPlanCompilerImpl.kt 85.17% <66.66%> (+0.46%) ⬆️
.../main/kotlin/org/partiql/lang/ast/IsOrderedMeta.kt 100.00% <100.00%> (ø)
.../lang/eval/visitors/AggregationVisitorTransform.kt 91.54% <100.00%> (ø)
...planner/transforms/AstToLogicalVisitorTransform.kt 86.47% <100.00%> (+0.16%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@johnedquinn johnedquinn left a comment

Choose a reason for hiding this comment

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

All looks good. Just one minor comment regarding the use of exhausted.

@rchowell rchowell merged commit 1e8b819 into main Jan 18, 2023
@rchowell rchowell deleted the is_ordered_meta branch January 18, 2023 01:21
yliuuuu pushed a commit that referenced this pull request Jan 20, 2023
* Adds IsOrderedMeta to determine if the sequence represents a bag or list

* Changes AggregationFinder to not be static
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.

3 participants