Skip to content
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

Queries return error when summarized data is not a String #152

Open
schiasileon opened this issue Nov 5, 2024 · 0 comments
Open

Queries return error when summarized data is not a String #152

schiasileon opened this issue Nov 5, 2024 · 0 comments

Comments

@schiasileon
Copy link

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:

"issues":[
   {
      "code":"invalid_type",
      "expected":"string",
      "received":"number",
      "path":[
         1,
         "sum(BilledCost)"
      ],
      "message":"Expected string, received number"
   }
],

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
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

No branches or pull requests

1 participant