Open ag-ramachandran opened 1 year ago
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.
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.