Azure / Azure/Webjobs.Extensions.Kusto
problems converting Kusto Boolean data types.
- Dominant language
- C#
- Stars
- 5
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
problems converting Kusto Boolean data types.
Given this table structure, where the property IsHealthy is of type bool:

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

With the Heartbeat record being:
I get this Exception:

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

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

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.
Contributor guide
Assessment
This issue has not been assessed yet.