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 duration sum for infinity dates #3430

Merged
merged 8 commits into from
May 13, 2024
Merged

Fix duration sum for infinity dates #3430

merged 8 commits into from
May 13, 2024

Conversation

jnsrnhld
Copy link
Collaborator

@jnsrnhld jnsrnhld commented May 8, 2024

Den Edge-Case hatte ich bei der ursprünglichen Implementierung vergessen, der Testcase fängt den Fall jetzt zusätzlich ab.

.as(alias)
);
Field<BigDecimal> durationSum = DSL.sum(
DSL.when(isNegativeInfinity(validityDate.getStart(), functionProvider), DSL.val(null, Integer.class))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Musst du das endDate nicht auch auf positive Infinity testen?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ich dachte erst nicht, aber du hast Recht. Habs nochmal getestet und angepasst.

@jnsrnhld jnsrnhld changed the base branch from sql/fix/secondary-id to develop May 13, 2024 09:39
@jnsrnhld jnsrnhld enabled auto-merge (squash) May 13, 2024 09:40
@jnsrnhld jnsrnhld merged commit 9de698a into develop May 13, 2024
6 checks passed
@delete-merged-branch delete-merged-branch bot deleted the sql/fix/duration-sum branch May 13, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants