merge multi-value field on rollout/compaction

7 views
Skip to first unread message

Eden Borochov

unread,
Mar 31, 2022, 6:47:54 AMMar 31
to Druid User
Hi folks, 
Need you help

Is there any way to ask druid to merge multi value dimension field on rollout?

I want to add a field to my druid table , but I don't want to increase the cardinality the current rows. 


Thanks
Eden

Ben Krug

unread,
Mar 31, 2022, 1:50:52 PMMar 31
to druid...@googlegroups.com
I'm not exactly clear on what you want to do, but maybe this will be helpful.

If you currently have a multi-valued dimension (MVD), and want to add a value into it, I think it should be possible using reindexing.
(Compaction or rollup affect metrics, not dimensions, and an MVD can't be a metric afaik.)

What I think you could do is use a transform on the dimension, with array_concat to add the new value to the existing MVD (array).

--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/0f6945ee-747d-490f-a621-92bb5c73ff2fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages