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

Brian Hulette commented on BEAM-11676:
--------------------------------------

Note EnumerationType already exists in Java, but is non-portable: 
https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/logicaltypes/EnumerationType.java

Type mapping in Python should probably be Enum: 
https://docs.python.org/3/library/enum.html

> Add an EnumerationType for portable schema definition
> -----------------------------------------------------
>
>                 Key: BEAM-11676
>                 URL: https://issues.apache.org/jira/browse/BEAM-11676
>             Project: Beam
>          Issue Type: Improvement
>          Components: cross-language
>            Reporter: Chamikara Madhusanka Jayalath
>            Priority: P2
>
> We should add a EnumerationType to portable schema definition and implement 
> it for SDKs.
> [https://github.com/apache/beam/blob/release-2.27.0/model/pipeline/src/main/proto/schema.proto]
>  
> This should be useful when defining various parameters in cross-language 
> wrappers.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to