You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Oscar Westra van Holthe - Kind (Jira)" <ji...@apache.org> on 2024/05/01 12:31:00 UTC

[jira] [Commented] (AVRO-3968) Support for custom @AvroNamespace annotation

    [ https://issues.apache.org/jira/browse/AVRO-3968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842621#comment-17842621 ] 

Oscar Westra van Holthe - Kind commented on AVRO-3968:
------------------------------------------------------

Sorry, that's not my call to make (I'm a committer, not a PMC).

However, there is an alternative in the document you linked, under [Contributing your code|https://cwiki.apache.org/confluence/display/AVRO/How+To+Contribute#HowToContribute-Contributingyourcode]:
{quote}
You can create a [pull request|https://help.github.com/articles/using-pull-requests/] [...]
{quote}

The easiest way is to clone the [Avro repository|https://github.com/apache/avro/], and create a PR from your clone to merge your changes.

> Support for custom @AvroNamespace annotation 
> ---------------------------------------------
>
>                 Key: AVRO-3968
>                 URL: https://issues.apache.org/jira/browse/AVRO-3968
>             Project: Apache Avro
>          Issue Type: Wish
>            Reporter: Henry Fernandes
>            Assignee: Henry Fernandes
>            Priority: Major
>
> Currently there are several java annotations like @AvroSchema, @AvroName, @AvroDoc etc that can be used to decorate Java POJO classes which in turn are used when generating avro schema with reflection.
> While @AvroName annotation comes handy for overriding the name of fields, there is no support for overriding the namespace.
>  
> Currently by default the java POJO's package name is used as the namespace. This is a bit restrictive as there can be cases where we may want to generate the schema with a different namespace.
>  
> The ask over here is to provide a @AvroNamespace annotation that can let us override the namespace to what we intend to.
>  
> Happy to contribute with a PR for the same.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)