Skip to content

problems converting Kusto Boolean data types. #46

@ag-ramachandran

Description

@ag-ramachandran

problems converting Kusto Boolean data types.

Given this table structure, where the property IsHealthy is of type bool:

image

If I create an input binding with casting to my typed class:

image

With the Heartbeat record being:

I get this Exception:

image

As it turns out, the input binding cast logic seems to convert a boolean in to a Number:

image

(If I temporarily let it convert to an Enumerable of Objects instead):

image

That would explain the above Exception.

Now, my workaround is to assign a Custom Converter to that Boolean property:

Then it seems to work fine.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions