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

truncate positive infinity to today, don't output if negative infinity is part of a count #2820

Merged
merged 4 commits into from
Nov 24, 2022

Conversation

awildturtok
Copy link
Collaborator

No description provided.

@awildturtok awildturtok requested a review from thoniTUB November 23, 2022 11:37
public DurationSumAggregator(Column column) {
super(column);
}

@Override
public void init(Entity entity, QueryExecutionContext context) {
set.clear();
realUpperBound = context.getToday();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ich denke nicht, dass das das ist was wir wollen, so kann eine Anfrage von gestern schon ganz andere Ergebnisse haben wenn sie Heute oder demnächst wiederverwendet wird.

Um das zu verhindern, sollte die upperBound mit persistiert werden, bzw. eine DateRestiction gesetzt sein. Sonst sehe ich Probleme bei der Reproduzierbarkeit von Ergebnissen

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Das machen wir bei DateDistance genauso, und ist auch genau das Ziel des PRs

Copy link
Collaborator

Choose a reason for hiding this comment

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

Jap, ich weiß, aber das könnte Probleme mit sich bringen

Comment on lines 7 to +8
5,"2011-03-05/2011-03-13"
6,"/2011-03-13"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Kein Case für "2011-03-13/" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

würde sich ja ändern mit dem heutigen Datum

Copy link
Collaborator

Choose a reason for hiding this comment

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

😀 thats my point

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

das würde sich auch bei der erstausführung testen, was es ja in den tests ist.

@awildturtok awildturtok merged commit 2b872f9 into develop Nov 24, 2022
@delete-merged-branch delete-merged-branch bot deleted the feature/masked-add-close-to-now branch November 24, 2022 12:42
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.

2 participants