Skip to content

Fixing NaN in coordinator UI on load#23285

Merged
yhwang merged 1 commit intoprestodb:masterfrom
anilsomisetty:issue_23186
Jul 25, 2024
Merged

Fixing NaN in coordinator UI on load#23285
yhwang merged 1 commit intoprestodb:masterfrom
anilsomisetty:issue_23186

Conversation

@anilsomisetty
Copy link
Copy Markdown
Contributor

@anilsomisetty anilsomisetty commented Jul 24, 2024

Description

Currently on loading coordinator UI it shows NaN for some values, this change will check for NaN and would return Unknown in it's place.

Motivation and Context

Fixing issue #23186

Impact

After this change NaN would be shown as Unkown initially on load

image

Release Notes

== NO RELEASE NOTE ==

@anilsomisetty anilsomisetty requested a review from a team as a code owner July 24, 2024 11:56
@anilsomisetty anilsomisetty requested a review from presto-oss July 24, 2024 11:56
@anilsomisetty
Copy link
Copy Markdown
Contributor Author

Hey @elharo , could you please review this PR

Copy link
Copy Markdown
Contributor

@elharo elharo left a comment

Choose a reason for hiding this comment

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

Now that I look at this "Unknown" doesn''t seem quite right since there's no value yet. It's not that there is a value but it's unknown. There isn't a value. What if we just used the empty string here instead?

@anilsomisetty
Copy link
Copy Markdown
Contributor Author

yeah empty string seems right

image

@tdcmeehan tdcmeehan requested a review from yhwang July 24, 2024 16:36
@yhwang
Copy link
Copy Markdown
Member

yhwang commented Jul 24, 2024

LGTM with one minor comment: I believe those are statistics. Shouldn't those undefined values be 0? unless we want to distinguish between undefined and 0.

@elharo
Copy link
Copy Markdown
Contributor

elharo commented Jul 24, 2024

Empty string seems correct to me. 0 and undefined/unknown are not the same

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.

3 participants