Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : how to get composed/complex parameter from the query to the <ExampleSumAggregator>Factory class #1

Open
vin-d opened this issue Aug 4, 2017 · 0 comments

Comments

@vin-d
Copy link

vin-d commented Aug 4, 2017

Hi, In here :
https://github.com/implydata/druid-example-extension/blob/master/src/main/java/io/imply/druid/example/aggregator/ExampleSumAggregatorFactory.java#L65

Aggregator parameters that are passed from the query are of simple type (they are different from a json object or a json array).

in my use case I'd like to pass as a parameter a JSON object so that I get a Map<String, String> or Map<String, Double> out of it.
I'm not very confortable with all the complexities of Jackson, would you have example to show how that could be done ?.

currently I pass what is my JSON object as a string (so i have double quotes escaped which is not readable), I then parse that JSON string and get my map from parsing the resulting JSON object.
I guess there is a better way to achieve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant