-
Notifications
You must be signed in to change notification settings - Fork 13
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 NaN values handling in the progressPercentage property #13
base: main
Are you sure you want to change the base?
Conversation
@@ -47,7 +47,6 @@ public bool scheduled | |||
public long processedBytes { get; set; } | |||
public long peakMemoryBytes { get; set; } | |||
public long spilledBytes { get; set; } | |||
public long progressPercentage { get; set; } |
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.
Separate commit .. and also why are you removing this?
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.
Since it's unused and there are other properties that are also missing here, I decided that the simplest fix is to remove it. However, I can also change its type to double, as defined here: QueryProgressStats.java#L34
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.
Hmm, I'm ok either way, do we know why it's unused in Java? Is this a Presto legacy? I'd keep it as it's optional until it's removed from the Java
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.
7f59008
to
0b09627
Compare
A simple fix for trino-csharp-client#12 since the
progressPercentage
property is unused.Another option is to change the
progressPercentage
type fromlong
todouble
,as it uses
OptionalDouble
in Trino (QueryProgressStats.java#L34).Thanks