Since now ClickHouse support Map datatype, maybe there should be api to write Map datatype using RowBinary format. It is not quite easy because Map key value can both be defined as primitive types.
I suppose we can define DataType class to include all necessary primitive types and then define generic
<T, R> void writeMap(T[] keys, R[] values, DataType keyType, DataType valueType)
function in ClickHouseRowBinaryStream class? Or is there any better solution?