How to read AggregateFunction(groupBitmap, UInt32) column directly #513
-
Hi all, I have a job ingest data into Clickhouse, which has a RoaringBitmap field, its type is AggregateFunction(groupBitmap, UInt32) in Clickhouse. I encoutered this exception " Unknown type: AggregateFunction(groupBitmap, UInt32)" when calling ExecuteReader(). I understand it's due to lack of support of this type, I'd like to extend TypeConverter to support it, but seems like it's impossible because TypeConverter is a internal class. My questions is how to read this column, note that I don't want to convert this column to String or Bit or other datatypes with Clickhouse built-in function like ToString(), bitmapToArray, etc. Thanks in advance for any suggestions |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi. As with all
|
Beta Was this translation helpful? Give feedback.
-
Since this seems to be a common question, I'll add a helper function which gives a more appropriate exception text in next release |
Beta Was this translation helpful? Give feedback.
I don't yet understand the purpose of selecting raw AggregateFunction state, but if you would really like to read it, there is a function ExecuteRawResultAsync which allows to read raw column values directly - you just need to specify a
FORMAT
you can parseClickHouse support channel may be a good help in finding a better way - https://telegram.me/clickhouse_en