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

Mean, Min, Max, Count global aggs for Expressions2 #684

Merged
merged 22 commits into from Mar 14, 2023

Conversation

xcharleslin
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Mar 10, 2023

Codecov Report

Merging #684 (6b24e18) into main (7e33322) will decrease coverage by 0.55%.
The diff coverage is 81.73%.

❗ Current head 6b24e18 differs from pull request most recent head 60a23e7. Consider uploading reports for the commit 60a23e7 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #684      +/-   ##
==========================================
- Coverage   85.80%   85.25%   -0.55%     
==========================================
  Files         140      134       -6     
  Lines       11823    11594     -229     
==========================================
- Hits        10145     9885     -260     
- Misses       1678     1709      +31     
Impacted Files Coverage Δ
src/series/ops/mod.rs 100.00% <ø> (ø)
src/dsl/expr.rs 74.24% <58.97%> (-10.85%) ⬇️
src/series/ops/compare_agg.rs 66.66% <66.66%> (ø)
src/series/ops/count.rs 66.66% <66.66%> (ø)
src/series/ops/numeric_agg.rs 75.00% <75.00%> (ø)
src/array/ops/compare_agg.rs 82.53% <82.53%> (ø)
daft/expressions2/expressions.py 73.17% <100.00%> (+0.06%) ⬆️
src/array/ops/count.rs 100.00% <100.00%> (ø)
src/array/ops/numeric_agg.rs 100.00% <100.00%> (ø)
src/python/expr.rs 78.74% <100.00%> (-1.10%) ⬇️
... and 1 more

... and 25 files with indirect coverage changes

@xcharleslin xcharleslin changed the title more aggs wip Mean, Min, Max, Count global aggs for Expressions2 Mar 13, 2023
@xcharleslin xcharleslin marked this pull request as ready for review March 13, 2023 20:20
src/dsl/expr.rs Outdated Show resolved Hide resolved
src/series/ops/numeric_agg.rs Outdated Show resolved Hide resolved
src/array/ops/count.rs Outdated Show resolved Hide resolved
src/array/ops/numeric_agg.rs Outdated Show resolved Hide resolved
src/array/ops/numeric_agg.rs Outdated Show resolved Hide resolved
tests/table/test_table.py Outdated Show resolved Hide resolved
tests/table/test_table.py Outdated Show resolved Hide resolved
tests/table/test_table.py Outdated Show resolved Hide resolved
let field = expr.to_field(schema)?;
Ok(Field::new(
field.name.as_str(),
match &field.dtype {
Copy link
Contributor

Choose a reason for hiding this comment

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

We have a field.dtype.is_numeric() now that may be helpful here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! There's some nonvacuous upcasting logic in the match though

@xcharleslin xcharleslin enabled auto-merge (squash) March 14, 2023 22:39
@xcharleslin xcharleslin merged commit 676b776 into main Mar 14, 2023
6 checks passed
@xcharleslin xcharleslin deleted the charles/rs-moreagg branch March 14, 2023 22:49
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.

None yet

3 participants