grafadruid / go-druid

A Golang client for Druid
https://join.slack.com/t/grafadruid/shared_invite/zt-1qy0skzy8-axnZuyzaWRm9t8f0r9dUWQ
Apache License 2.0
39 stars 32 forks source link

Add registered lookup extraction function #46

Closed MarcPer closed 3 years ago

MarcPer commented 3 years ago

Note that Injective and Optimize are of type *bool. This is so they are included in the outgoing JSON even when they're set to false, but are still not included if their values is not set.

As detailed here:

A property of injective can override the lookup's own sense of whether or not it is injective. If left unspecified, Druid will use the registered cluster-wide lookup configuration.

and

A property optimize can be supplied to allow optimization of lookup based extraction filter (by default optimize = true).

Therefore, it's important to distinguish between those fields missing and explicitly set to false.

jbguerraz commented 3 years ago

Created #47