-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: same numbers everywhere #21848
fix: same numbers everywhere #21848
Conversation
"viewport_width_min": "viewport_width >= ceil({viewport_width_min} / 16)", | ||
"viewport_width_max": "viewport_width <= ceil({viewport_width_max} / 16)", |
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.
on the query side this is the only change
"x": 10 / 16, | ||
"y": y / 16, | ||
"x": round(x / 16), | ||
"y": round(y / 16), | ||
"scale_factor": 16, | ||
# this adjustment is done at ingestion | ||
"viewport_width": math.ceil(viewport_width / 16), | ||
"viewport_height": math.ceil(viewport_height / 16), |
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.
but the test input data doesn't have the same shape as the real ingestion will generate
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.
makes sense
at some point we started with
ceil
and moved toround
or maybe just never consistently used them
certainly right now ingestion does
round(value/16)
and queries assume eithervalue/16
orround(value/16)
🙈
this moves all the python and clickhouse calculations to assume
round(value/16)
so we've the same everywhere