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: Allow double and float types to be rollupable #2311

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

mofojed
Copy link
Member

@mofojed mofojed commented Dec 12, 2024

  • We had this restriction in the UI, but the engine can actually handle it
  • Tested with doubles, floats
  • Tested with the following tables:
from deephaven import empty_table

doubles = empty_table(1_000_000).update_view(["Group = i*10.4", "N = (i % 347)*0.1", "M = (i % 29)*10.2", "Value=i*2.4", "Weight=i*4.2"])
floats = empty_table(1_000_000).update_view(["Group = i*10.4", "N = (float)(i % 347)*0.1", "M = (float)(i % 29)*10.2"
, "Value=(float)i*2.4", "Weight=(float)i*4.2"])

- We had this restriction in the UI, but the engine can actually handle it
- Tested with doubles, floats
- Tested with the following tables:
```python
from deephaven import empty_table

doubles = empty_table(1_000_000).update_view(["Group = i*10.4", "N = (i % 347)*0.1", "M = (i % 29)*10.2", "Value=i*2.4", "Weight=i*4.2"])
floats = empty_table(1_000_000).update_view(["Group = i*10.4", "N = (float)(i % 347)*0.1", "M = (float)(i % 29)*10.2", "Value=(float)i*2.4", "Weight=(float)i*4.2"])
```
- Updated e2e tests and unit tests
@mofojed mofojed requested a review from a team December 12, 2024 15:42
@mofojed mofojed self-assigned this Dec 12, 2024
@mofojed mofojed requested review from vbabich and removed request for a team December 12, 2024 15:42
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.71%. Comparing base (d884bff) to head (b197089).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2311   +/-   ##
=======================================
  Coverage   46.70%   46.71%           
=======================================
  Files         704      704           
  Lines       39011    39013    +2     
  Branches     9745     9747    +2     
=======================================
+ Hits        18220    18224    +4     
+ Misses      20780    20778    -2     
  Partials       11       11           
Flag Coverage Δ
unit 46.71% <100.00%> (+<0.01%) ⬆️

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.

@mofojed mofojed merged commit ab5b3b6 into deephaven:main Dec 13, 2024
12 checks passed
@mofojed mofojed deleted the 2295-double-rollups branch December 13, 2024 16:35
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web UI should allow using doubles as rollup key columns
2 participants