Is there any way to transform them to the form that is queriable with the standard SQL syntax clickhouse provides? Or transform with VRL/lua to distributions/histogram/summaries? We do by default this typo of transformation in remote prometheus write to get percentiles.
Attempted Solutions
This git issue might be related https://github.com/vectordotdev/vector/issues/9181 as it talks about exposing to VRL high-level functions to do types transformation including DDSketches.
It also looks like possible to write lua function to transform ddsketch/uddsketch to quantiles including merge logic, but no lua lib exists yet. Alternatively, ddsketch agent impl can be ported to clickhouse directly.
Proposal
Perhaps, closing https://github.com/vectordotdev/vector/issues/9181 would do the trick.
Meanwhile, are there any other workarounds possible today to deal with DDSketches? Any example of lua/vrl script?
I managed to sort it out by implementing a custom DDSketch processing logic inside the OLAP engine and using JSON serialized vector DDSketches directly.
A note for the community
Use Cases
When transforming DDSketch from metric to log to push to Clickhouse cluster they come as an encoded set of sketch fields:
Is there any way to transform them to the form that is queriable with the standard SQL syntax clickhouse provides? Or transform with VRL/lua to distributions/histogram/summaries? We do by default this typo of transformation in remote prometheus write to get percentiles.
Attempted Solutions
This git issue might be related https://github.com/vectordotdev/vector/issues/9181 as it talks about exposing to VRL high-level functions to do types transformation including DDSketches. It also looks like possible to write lua function to transform ddsketch/uddsketch to quantiles including merge logic, but no lua lib exists yet. Alternatively, ddsketch agent impl can be ported to clickhouse directly.
Proposal
Perhaps, closing https://github.com/vectordotdev/vector/issues/9181 would do the trick. Meanwhile, are there any other workarounds possible today to deal with DDSketches? Any example of lua/vrl script?
References
No response
Version
No response