Hey Furkan,

Druid can index flat arrays (multi-value dimensions) but not arrays of
objects. There is the ability to flatten objects on ingestion using
JSONPath. See http://druid.io/docs/latest/ingestion/flatten-json

Best regards,
Dylan

On Wed, 9 Jan 2019 at 14:23, Furkan KAMACI <furkankam...@gmail.com> wrote:

> Hi All,
>
> I can index such data with Druid:
>
> {"ts":"2018-01-01T02:35:45Z","appToken":"guid", "eventName":"app-open",
> "key1":"value1"}
>
> via this configuration:
>
> "parser" : {
>         "type" : "string",
>         "parseSpec" : {
>           "format" : "json",
>           "timestampSpec" : {
>             "format" : "iso",
>             "column" : "ts"
>           },
>           "dimensionsSpec" : {
>             "dimensions": [
>               "appToken",
>               "eventName",
>               "key1"
>             ]
>           }
>         }
>       }
>
> However, I would also want to index such data:
>
> {
>   "ts":"2018-01-01T03:35:45Z",
>   "appToken":"guid",
>   "eventName":"app-open",
>   "properties":[{"randomKey1":"randomValue1"},
> {"randomKey2":"randomValue2"}]
> }
>
> at which properties is an array and members of that array has some
> arbitrary keys and values.
>
> How can I do that?
>
> Kind Regards,
> Furkan KAMACI
>

Reply via email to