-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Remove EOFException
catch block from the Avro decoders
#15018
Remove EOFException
catch block from the Avro decoders
#15018
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...-extensions/src/main/java/org/apache/druid/data/input/avro/InlineSchemaAvroBytesDecoder.java
Show resolved
Hide resolved
EOFException
block with IOException
block in the Avro extension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀, but looks like its missing some test coverage 😢
Thanks for the reviews! Updated the PR with additional tests that were missing and cleaned up the exception handling code a little bit. |
EOFException
block with IOException
block in the Avro extensionEOFException
catch block from the Avro decoders
With Avro 1.11.1, the
read()
method only throwsIOException
.This PR removes the old
EOFException
catch block and now only has anException
block to catchIOException
or other classes of exceptions, which is then thrown as a genericParseException
.Also, did a minor cleanup of surrounding exception messages around interpolations and capitalization. Added unit tests to tests different parsing errors.
This PR has: