This message was deleted.
# general
s
This message was deleted.
a
Druid 26 has an UNNEST function that will let you do this. 26 is expected to be released this month. Here is more about UNNEST - https://imply.io/blog/exploring-unnest-in-druid/
🙌 1
c
Thanks, nice timing on the article 🙂
@Abhishek Agarwal looking over the article, it doesn't really resolve this issue though. It was more there's no obvious way to convert a COMPLEX value type that is actually holding an array to a MV in the first place. For now, I've modified the ingestion to promote the array values to a first-child key in the incoming json payload. This means the SQL ingestion automatically identifies them as MV strings. However, if they're left lower in the JSON (very much preferable for dynamic payloads) then when using a JSON function to select the property, it's a COMPLEX.
a
that should be possible in 26 as far as I know. the changes are very recent. you can also build druid from master branch and try it out.
g
no obvious way to convert a COMPLEX value type that is actually holding an array to a MV in the first place
the idea is more that explicit
UNNEST
on an array provides the same behavior as the implicit unnest on an MV. So you're not converting to MV, but you're getting the same effect
c
Great, thanks @Gian Merlino, sounds great, will give it a go
g
Let us know how it goes; as the blog says this is a new feature, beta, with a feature flag to enable it; at this point we're looking for feedback 🙂