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

Query stats followup #3255

Merged
merged 95 commits into from
Mar 5, 2024
Merged

Query stats followup #3255

merged 95 commits into from
Mar 5, 2024

Conversation

awildturtok
Copy link
Collaborator

No description provided.

@awildturtok awildturtok self-assigned this Dec 20, 2023
@awildturtok awildturtok requested review from thoniTUB and removed request for thoniTUB December 20, 2023 15:40
@awildturtok awildturtok requested a review from thoniTUB February 22, 2024 14:15
Comment on lines 36 to 37
final int lowerPercentile = config.getVisualisationPercentiles().hasLowerBound() ? config.getVisualisationPercentiles().lowerEndpoint() : 0;
final int upperPercentile = config.getVisualisationPercentiles().hasUpperBound() ? config.getVisualisationPercentiles().upperEndpoint() : 100;
Copy link
Collaborator

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?

);
}

final double width = roundWidth ? Math.max(1, Math.round((upper - lower) / expectedBins)) : (upper - lower) / expectedBins;
Copy link
Collaborator

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?

Copy link
Collaborator Author

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 )

Copy link
Collaborator

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?

Copy link
Collaborator Author

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.


private final Comparator<TYPE> comparator;
public NumberColumnStatsCollector(String name, String label, String description, ResultType type, PrintSettings printSettings, int expectedBins, double lowerPercentile, double upperPercentile) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

Copy link
Collaborator

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

Copy link
Collaborator Author

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.

@awildturtok awildturtok requested a review from thoniTUB February 27, 2024 13:32
Comment on lines 36 to 37
final int lowerPercentile = config.getVisualisationPercentiles().hasLowerBound() ? config.getVisualisationPercentiles().lowerEndpoint() : 0;
final int upperPercentile = config.getVisualisationPercentiles().hasUpperBound() ? config.getVisualisationPercentiles().upperEndpoint() : 100;
Copy link
Collaborator

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

@awildturtok awildturtok changed the base branch from develop to release March 5, 2024 14:18
@awildturtok awildturtok merged commit 06042ec into release Mar 5, 2024
@delete-merged-branch delete-merged-branch bot deleted the feature/query-stats-followup branch March 5, 2024 14:28
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