Skip to content

[BUG] LogTableRow.GetDecimal() throws exception "operation requires an element of type 'String'" #41245

@joshmouch

Description

@joshmouch

Library name and version

Azure.Monitor.Query

Describe the bug

When I call `LogTableRow.GetDecimal({columnName}), it throws an error:

operation requires an element of type 'String', but the target element has a type 'Number'

Expected behavior

I would expect a number to be parsed as a decimal, or if it can't be, to tell me why.

Actual behavior

I get the above error.

Reproduction Steps

Create a query that returns a Number and try to parse it as a decimal.

Environment

No response

Metadata

Metadata

Assignees

Labels

ClientThis issue is related to a non-management packageMonitor - Querycustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions