You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by GitBox <gi...@apache.org> on 2022/02/09 23:57:57 UTC
[GitHub] [avro] zcsizmadia opened a new pull request #1531: AVRO-3259: Throw exception if unknown codec
zcsizmadia opened a new pull request #1531:
URL: https://github.com/apache/avro/pull/1531
Make sure you have checked _all_ steps below.
### Jira
- [X] My PR addresses the following [Avro Jira](https://issues.apache.org/jira/browse/AVRO-3259)
- https://issues.apache.org/jira/browse/AVRO-3259
- In case you are adding a dependency, check if the license complies with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
### Tests
- [X] My PR adds the following unit tests __OR__ does not need testing for this extremely good reason:
### Commits
- [X] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "[How to write a good git commit message](https://chris.beams.io/posts/git-commit/)":
1. Subject is separated from body by a blank line
1. Subject is limited to 50 characters (not including Jira issue reference)
1. Subject does not end with a period
1. Subject uses the imperative mood ("add", not "adding")
1. Body wraps at 72 characters
1. Body explains "what" and "why", not "how"
### Documentation
- [X] In case of new functionality, my PR adds documentation that describes how to use it.
- All the public functions and the classes in the PR contain Javadoc that explain what it does
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] martin-g commented on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
martin-g commented on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034996472
Thank you, @zcsizmadia !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] netlify[bot] edited a comment on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034329314
👷 Deploy Preview for *avro-website-preview* processing.
🔨 Explore the source changes: d9cca890cf2f3ad6acb9730f61615ec882d04b18
🔍 Inspect the deploy log: [https://app.netlify.com/sites/avro-website-preview/deploys/620458628c63940008f00de0](https://app.netlify.com/sites/avro-website-preview/deploys/620458628c63940008f00de0)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] zcsizmadia commented on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
zcsizmadia commented on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034329646
@martin-g It throws AvroException instead of NotImplemented.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] martin-g commented on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
martin-g commented on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034994108
> @martin-g It throws AvroRuntimeException instead of NotImplemented. (the same exception message as the Java code)
Same for Rust - https://github.com/apache/avro/blob/8988196545a17e76a984b07313dd4a86497c9e02/lang/rust/src/codec.rs#L276
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] martin-g commented on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
martin-g commented on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034995349
> The only concern I have here is really the lack of avro.code metadata in the avro file, however it should be ok. Maybe we should have a unit test which creates an avro file without the avro.codec metdata (if it is possible at all), and check the code selects the null codec.
The spec says ` If codec is absent, it is assumed to be "null"`. Only the schema metadata is required.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] netlify[bot] edited a comment on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034329314
❌ Deploy Preview for *avro-website-preview* failed.
🔨 Explore the source changes: d9cca890cf2f3ad6acb9730f61615ec882d04b18
🔍 Inspect the deploy log: [https://app.netlify.com/sites/avro-website-preview/deploys/620458628c63940008f00de0](https://app.netlify.com/sites/avro-website-preview/deploys/620458628c63940008f00de0)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] netlify[bot] edited a comment on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034329314
❌ Deploy Preview for *avro-website-preview* failed.
🔨 Explore the source changes: 498e15879f056832d0fc6ecf10e72a565338521a
🔍 Inspect the deploy log: [https://app.netlify.com/sites/avro-website-preview/deploys/62051679c0a3e60008279018](https://app.netlify.com/sites/avro-website-preview/deploys/62051679c0a3e60008279018)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] martin-g merged pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
martin-g merged pull request #1531:
URL: https://github.com/apache/avro/pull/1531
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] netlify[bot] edited a comment on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034329314
👷 Deploy Preview for *avro-website-preview* processing.
🔨 Explore the source changes: 498e15879f056832d0fc6ecf10e72a565338521a
🔍 Inspect the deploy log: [https://app.netlify.com/sites/avro-website-preview/deploys/62051679c0a3e60008279018](https://app.netlify.com/sites/avro-website-preview/deploys/62051679c0a3e60008279018)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] netlify[bot] commented on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
netlify[bot] commented on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034329314
👷 Deploy Preview for *avro-website-preview* processing.
🔨 Explore the source changes: c1b3ccff9889f47fed5985f0c66f692d2c72a6d8
🔍 Inspect the deploy log: [https://app.netlify.com/sites/avro-website-preview/deploys/620454f8839d120008368ac9](https://app.netlify.com/sites/avro-website-preview/deploys/620454f8839d120008368ac9)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] zcsizmadia edited a comment on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
zcsizmadia edited a comment on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034343395
It is important to call out that avro.codec meta data is not defined, the codec is assumed to be "null". I guess that was the reason behind defaulting the codec to null in that case statement, which caused the issue in the ticket
The only concern I have here is really the lack of avro.code metadata in the avro file, however it should be ok. Maybe we should have a unit test which creates an avro file without the avro.codec metdata (if it is possible at all), and check the code selects the null codec.
https://avro.apache.org/docs/current/spec.html (search for avro.codec)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] zcsizmadia edited a comment on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
zcsizmadia edited a comment on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034329646
@martin-g It throws AvroRuntimeException instead of NotImplemented. (the same exception message as the Java code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] zcsizmadia commented on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
zcsizmadia commented on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034343395
It is important to call out that avro.codec meta data is not defined, the codec is assumed to be "null". I guess that was the reason behind defaulting the codec to null in that case statement, which caused the issue in the ticket
https://avro.apache.org/docs/current/spec.html (search for avro.codec)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [avro] netlify[bot] edited a comment on pull request #1531: AVRO-3259: Throw exception if unknown codec
Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #1531:
URL: https://github.com/apache/avro/pull/1531#issuecomment-1034329314
❌ Deploy Preview for *avro-website-preview* failed.
🔨 Explore the source changes: c1b3ccff9889f47fed5985f0c66f692d2c72a6d8
🔍 Inspect the deploy log: [https://app.netlify.com/sites/avro-website-preview/deploys/620454f8839d120008368ac9](https://app.netlify.com/sites/avro-website-preview/deploys/620454f8839d120008368ac9)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org