We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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"}
{"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?
The text was updated successfully, but these errors were encountered:
Suppress JsonPath exceptions in AvroFlattener (#5793)
1f700bb
Re: #5791 - Make the AvroFlattenerMake consistent with the JSONFlattenerMaker
Suppress JsonPath exceptions in AvroFlattener (apache#5793)
0efde2b
Re: apache#5791 - Make the AvroFlattenerMake consistent with the JSONFlattenerMaker
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: