databricks-sdk-go icon indicating copy to clipboard operation
databricks-sdk-go copied to clipboard

[ISSUE] mlflow runs can return `NaN` as a metrics value, causing deserialization failures

Open orf opened this issue 9 months ago • 1 comments

Description

failed to unmarshal response body: invalid character 'N' after top-level value. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
GET /api/2.0/mlflow/runs/get?run_id=dd8649ec9ac241e5ad9ddd1c7bdc6099
{
<   "run": {
<     "data": {
<       "metrics": [
<         {
<           "key": "null_count_mean",
<           "step": 0,
<           "timestamp": 1720450351904,
<           "value": "NaN"
<         },
....

The request ID for this is 39126347-241b-473c-a1da-2fb865833fad

Expected behavior This should deserialize correctly. Golang cannot deserialize a string like "NaN" to float64: https://go.dev/play/p/9eAk_mHVcmT

orf avatar Feb 24 '26 11:02 orf

Opened #1601 for this.

alliasgher avatar Apr 14 '26 21:04 alliasgher