I have come across a problem which requires me to derive a dimensions from two other dimensions. This would be a bit complicated to do as a post-process, so it would be better to avoid it.
The issue is that I need I need a dimension (let’s call it) X to be derived from two dimensions: (let’s call them) A and B. The logic for X is, if A > 0, then X is ‘one’, else if B == 1, then X is ‘two’, else it is ‘three’.
I would like to know if there is a way to do this in Druid and still be able to group By X.
Thanks in advance!
- Rafael Abbondanza