-
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
Query stats followup #3255
Query stats followup #3255
Conversation
…r.java, adds limit to Histogram, adds sum statistic
…stats rendering to backend
final int lowerPercentile = config.getVisualisationPercentiles().hasLowerBound() ? config.getVisualisationPercentiles().lowerEndpoint() : 0; | ||
final int upperPercentile = config.getVisualisationPercentiles().hasUpperBound() ? config.getVisualisationPercentiles().upperEndpoint() : 100; |
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.
Wie validiert Range, dass die Range zwischen 0 und 100 liegt?
backend/src/main/java/com/bakdata/conquery/models/query/statistics/Histogram.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/query/statistics/Histogram.java
Show resolved
Hide resolved
); | ||
} | ||
|
||
final double width = roundWidth ? Math.max(1, Math.round((upper - lower) / expectedBins)) : (upper - lower) / expectedBins; |
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.
Warum wird beim Runden bei 1 geclippt?
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.
Wir wollen beim runden mindestens eine binWidth von 1 haben. (Ich denke, mal du hast das als maximum darf das 1 sein gelesen? :D )
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.
Über die Konsequenzen hatte ich mir noch nicht so gedanken gemacht. Wäre es ein problem für das Histogram, wenn die Werte nur zwischen zwei Ints liegen würden?
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.
Du meinst zwischen zwei adjacent ints? rounding ist nur aktiv, wenn die bounds mehr als 1 auseinander liegen.
backend/src/main/java/com/bakdata/conquery/models/query/statistics/Histogram.java
Outdated
Show resolved
Hide resolved
...d/src/main/java/com/bakdata/conquery/models/query/statistics/NumberColumnStatsCollector.java
Outdated
Show resolved
Hide resolved
...d/src/main/java/com/bakdata/conquery/models/query/statistics/NumberColumnStatsCollector.java
Outdated
Show resolved
Hide resolved
|
||
private final Comparator<TYPE> comparator; | ||
public NumberColumnStatsCollector(String name, String label, String description, ResultType type, PrintSettings printSettings, int expectedBins, double lowerPercentile, double upperPercentile) { |
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.
Mich verwirrt, dass percentiles reingereicht werden und auch berechnet werden. Bitte einen anderen namen nehmen
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.
Was genau verwirrt dich daran? Und was muss anders benannt werden? Die percentilen werden verwendet um das Histogramm auf einen relevanten Wertebereich zu fokussieren.
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.
Mich hat verwirrt, dass die Percentilen durch den Constructor scheinbar von außen reingegeben werden, ob wohl sie nach meinem Verständnis erst aus dem collect
dieser Klasse hervorgehen.
Ich schlage vor lowerPercentile
-> lowerBoundPercentileHint
zu nennen, damit klarer wird, dass auch die Daten einen Einfluss haben
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.
Mich hat verwirrt, dass die Percentilen durch den Constructor scheinbar von außen reingegeben werden, ob wohl sie nach meinem Verständnis erst aus dem collect dieser Klasse hervorgehen.
Das hier reingegebene sind die percentilen die dann in describe verwendet werden, um dann die entsprechenden werte an der stelle auszuwerten. Sollten die Werte zu eng aneinander liegen werden sie expandiert.
...d/src/main/java/com/bakdata/conquery/models/query/statistics/NumberColumnStatsCollector.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/query/statistics/Histogram.java
Outdated
Show resolved
Hide resolved
Implements limit for SingleTableResult, to only output a specified nu…
backend/src/main/java/com/bakdata/conquery/models/config/FrontendConfig.java
Outdated
Show resolved
Hide resolved
final int lowerPercentile = config.getVisualisationPercentiles().hasLowerBound() ? config.getVisualisationPercentiles().lowerEndpoint() : 0; | ||
final int upperPercentile = config.getVisualisationPercentiles().hasUpperBound() ? config.getVisualisationPercentiles().upperEndpoint() : 100; |
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.
Die Validierung sollte den no bound-case schon abfangen
…to feature/query-stats-followup
No description provided.