Hi! We intend to use the Kafka Engine (https://clickhouse.tech/docs/ru/operations/table_engines/kafka/) for storing events in Clickhouse.
Also, some of the necessary information is stored in the Kafka's headers (https://issues.apache.org/jira/browse/KAFKA-4208) and we would like to store them too.
Is there a way to achive this ?
Right now it's not supported.
We can add support for that in future version in pair of virtual columns like
_header_names Array(String),
_header_values Array(String)
Would such a solution satisfy your needs?
We are willing to have this feature too. Would be very helpful.
It's ok for us to use 2 arrays if this approach guarantees the order.
I mean we'll be able to get header's value somehow like this:
arrayElement(header_values, indexOf(header_names, 'header_name')) as header_name
@filimonov It would be great to have it indeed, thanks a lot!
Most helpful comment
Right now it's not supported.
We can add support for that in future version in pair of virtual columns like
Would such a solution satisfy your needs?