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

JSONPath configuration inconsistency. #5791

Closed
dylwylie opened this issue May 22, 2018 · 0 comments
Closed

JSONPath configuration inconsistency. #5791

dylwylie opened this issue May 22, 2018 · 0 comments

Comments

@dylwylie
Copy link
Contributor

Hey there,

I'm having an issue ingesting streams of Avro where an object may or may not be present.

E.G. Some messages might look like
{"something_else": "some_value"}

and others

{"something_else": "some_value", "maybe_object": {"my_key", "my_value"}}

The following JSONPath

$.maybe_object.my_key

Will evaluate as null for the first message when using JSON but will throw a com.jayway.jsonpath.PathNotFoundException when using AVRO.

I believe this is because JSONFlattenerMake.JSONPATH_CONFIGURATION sets a suppress_exceptions option, whereas the AvroFlattenerMake doesn't.

@gianm - was this on purpose or would it be safe to also set this option for the Avro flattener maker?

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