ClickHouseClient icon indicating copy to clipboard operation
ClickHouseClient copied to clipboard

How to write Map type?

Open rogeralsing opened this issue 1 year ago • 0 comments

I've tried to write to a Map(String,String) field using both tuple arrays and arrays of keyvalue pairs. which I believe is what the docs are saying here should be supported:

Skärmavbild 2023-02-25 kl  21 07 56

In both cases I get:

Parameter "tag_map". The type "System.Tuple`2[System.String,System.String][]" is not supported. See the inner exception for details.

Parameter "tag_map". The type "System.Collections.Generic.List`1[System.Collections.Generic.KeyValuePair`2[System.String,System.String]]" is not supported. See the inner exception for details

I see nothing in the ClickHouseTypeInfoProvider.GetTypeFromValue method that seem to cover this.

Am I doing something wrong here?

rogeralsing avatar Feb 25 '23 20:02 rogeralsing