Closed schiasileon closed 1 day ago
When summarizing data from arrays, the plugin throws invalid type errors, as it expects the query to return a string instead of any other type.
E.g.
| summarize { cost=sum(BilledCost) }, by: { day, currency=BillingCurrency }
throws:
"issues":[ { "code":"invalid_type", "expected":"string", "received":"number", "path":[ 1, "sum(BilledCost)" ], "message":"Expected string, received number" } ],
The result is displayed correctly, even if it is not a String
Throws long error
@dynatrace/backstage-plugin-dql-backend
@dynatrace/backstage-plugin-dql
Hi, I just did some changes with https://github.com/Dynatrace/backstage-plugin/pull/157 and now everything should be supported, as long as the result is an array 👍
Summary
When summarizing data from arrays, the plugin throws invalid type errors, as it expects the query to return a string instead of any other type.
E.g.
| summarize { cost=sum(BilledCost) }, by: { day, currency=BillingCurrency }
throws:
Expected Behavior
The result is displayed correctly, even if it is not a String
Current Behavior
Throws long error
Your Environment
@dynatrace/backstage-plugin-dql-backend
version: ^2.1.2@dynatrace/backstage-plugin-dql
version: ^2.1.2