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

Widen returned types for UpdateBy floating point operations. #5371

Merged
merged 6 commits into from
May 8, 2024

Conversation

lbooker42
Copy link
Contributor

@lbooker42 lbooker42 commented Apr 16, 2024

The following operations returned Float types when provided Float input and are changed by this PR to return Double:

  • CumSum
  • CumProd
  • RollingSum

Companion to #5368 and will close #4023

Also close #5459 (test failures issue)

@lbooker42 lbooker42 self-assigned this Apr 16, 2024
@lbooker42 lbooker42 added this to the 1. March 2024 milestone Apr 16, 2024
@lbooker42 lbooker42 requested a review from chipkent April 16, 2024 19:05
chipkent
chipkent previously approved these changes Apr 16, 2024
@chipkent chipkent added the devrel-watch DevRel team is watching label Apr 17, 2024
@@ -81,7 +84,7 @@ public void pop(int count) {
@Override
public void writeToOutputChunk(int outIdx) {
if (aggSum.size() == nullCount) {
outputValues.set(outIdx, NULL_FLOAT);
outputValues.set(outIdx, NULL_DOUBLE);
Copy link
Member

@rcaudy rcaudy May 7, 2024

Choose a reason for hiding this comment

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

This doesn't match sum(DoubleVector) or sum(FloatVector) in Numeric. Which is right, @chipkent ?

Copy link
Member

Choose a reason for hiding this comment

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

I think you are looking at something old. The latest Numeric.sum does return NULL_DOUBLE.

https://github.com/deephaven/deephaven-core/blob/main/engine/function/src/templates/Numeric.ftl#L1485

Copy link
Member

Choose a reason for hiding this comment

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

I may have commented on a differnt case. Looking.

Copy link
Member

Choose a reason for hiding this comment

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

If they are all null, it would make sense to return NULL_DOUBLE. I think Numeric.ftl needs to be changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you want me to change it in this PR?

Copy link
Member

Choose a reason for hiding this comment

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

OK. In that case, I think we can merge Larry's PR, and have follow-up work for the numerics.

rcaudy
rcaudy previously approved these changes May 7, 2024
@lbooker42 lbooker42 dismissed stale reviews from rcaudy and chipkent via 5eadbcd May 7, 2024 21:07
@lbooker42 lbooker42 enabled auto-merge (squash) May 8, 2024 16:22
@lbooker42 lbooker42 merged commit 25e0cb1 into deephaven:main May 8, 2024
14 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2024
@deephaven-internal
Copy link
Contributor

Labels indicate documentation is required. Issues for documentation have been opened:

Community: deephaven/deephaven-docs-community#208

@lbooker42 lbooker42 deleted the lab-updateby-types branch June 26, 2024 19:57
@chipkent chipkent removed the devrel-watch DevRel team is watching label Aug 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working DocumentationNeeded query engine ReleaseNotesNeeded Release notes are needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple TestCumProd and TestCumSum tests failing Vector/Formula Aggregation Inconsistency
4 participants