--
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+unsubscribe@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/6c9f377a-b0df-4742-9fb8-b8fe6e225dc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You can achieve something like this using a "javascript" extractionFn, see: http://druid.io/docs/latest/querying/dimensionspecs.html, although it's limited to working on a single input column at a time.Future versions of Druid will include an expression language that can express this case/when, among other things, without the need for javascript.
Gian
On Sun, Jun 4, 2017 at 11:13 PM, Ehiz Ize <ehizv...@gmail.com> wrote:
Hi,
I'm new to Druid and i would like to know how to perform a CASE or IF/ELSE Statement in my Select Query,
Example:
SELECT
CASE WHEN one = '1' then '11'ELSE '22' END
can this be achieved on druid.
Thanks in advance
--
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.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/62d7438f-1ee7-4191-b657-cc0b5373eb5e%40googlegroups.com.