Azure: Handle real type nan/inf values in Log/Insights Analytics (#26342)
Before this, if the user were to divide by 0.0, "Infinity" would be returned in the result and the user would get an error: "unexpected type, expected json.Number but got string". Now these values are properly set as Inf values (and also made sure to handle NaN as well).
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"tables": [
|
||||
{
|
||||
"name": "PrimaryResult",
|
||||
"columns": [
|
||||
{
|
||||
"name": "XInf",
|
||||
"type": "real"
|
||||
},
|
||||
{
|
||||
"name": "XInfNeg",
|
||||
"type": "real"
|
||||
},
|
||||
{
|
||||
"name": "XNan",
|
||||
"type": "real"
|
||||
}
|
||||
],
|
||||
"rows": [
|
||||
[
|
||||
"Infinity",
|
||||
"-Infinity",
|
||||
"NaN"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user