-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
…y is part of a count
public DurationSumAggregator(Column column) { | ||
super(column); | ||
} | ||
|
||
@Override | ||
public void init(Entity entity, QueryExecutionContext context) { | ||
set.clear(); | ||
realUpperBound = context.getToday(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
5,"2011-03-05/2011-03-13" | ||
6,"/2011-03-13" |
There was a problem hiding this comment.
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/" ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😀 thats my point
There was a problem hiding this comment.
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.
No description provided.