Skip to content

Print cost metrics in units#68

Merged
kokosing merged 1 commit into
trinodb:masterfrom
kokosing:origin/master/063_cost_in_unit
May 8, 2019
Merged

Print cost metrics in units#68
kokosing merged 1 commit into
trinodb:masterfrom
kokosing:origin/master/063_cost_in_unit

Conversation

@kokosing
Copy link
Copy Markdown
Member

Print cost metrics in units

@cla-bot cla-bot Bot added the cla-signed label Jan 25, 2019
@kokosing
Copy link
Copy Markdown
Member Author

Copy of prestodb/presto#11443

@kokosing
Copy link
Copy Markdown
Member Author

kokosing commented Jan 25, 2019

Blocked on airlift/units#8

@kokosing kokosing force-pushed the origin/master/063_cost_in_unit branch from b8ee32d to a69f09a Compare January 30, 2019 09:37
@martint martint self-assigned this Apr 22, 2019
Copy link
Copy Markdown
Member

@martint martint left a comment

Choose a reason for hiding this comment

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

One minor comment, but otherwise looks good

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We could use +/- \u221E (∞) here instead of rendering as "Infinity".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not ideal as it uses "data size", which is completely unrelated. Although that class/format doesn't change much, it makes this code brittle. But it will do for now. We can later have a dedicated formatter for cost units.

@martint martint assigned kokosing and unassigned martint Apr 29, 2019
@kokosing kokosing force-pushed the origin/master/063_cost_in_unit branch from a69f09a to aab4bea Compare May 6, 2019 08:58
@kokosing kokosing force-pushed the origin/master/063_cost_in_unit branch from aab4bea to 8b5d658 Compare May 8, 2019 09:24
@kokosing kokosing merged commit 3a333a3 into trinodb:master May 8, 2019
@kokosing kokosing deleted the origin/master/063_cost_in_unit branch May 8, 2019 10:57
@kokosing kokosing added this to the 311 milestone May 8, 2019
@kokosing kokosing mentioned this pull request May 8, 2019
5 tasks
voonhous added a commit to voonhous/trino that referenced this pull request Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants