Skip to content

[python][schemaregistry] Handle subrecords in complex types#4050

Merged
merlimat merged 1 commit into
apache:masterfrom
yciabaud:custom-types
Apr 30, 2019
Merged

[python][schemaregistry] Handle subrecords in complex types#4050
merlimat merged 1 commit into
apache:masterfrom
yciabaud:custom-types

Conversation

@yciabaud
Copy link
Copy Markdown
Contributor

@yciabaud yciabaud commented Apr 15, 2019

Motivation

When declaring a schema in the python client, the provided complex types such as Record, Array or Map does not compose well because the records schema must be included in the parent schema instead of the type.

Modifications

This PR adds a rule for each complex type to use the schema instead of the type in the parent schema build.

Copy link
Copy Markdown
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change LGTM. Can you also add unit tests for this in pulsar-client-cpp/python/schema_test.py ?

@merlimat merlimat added this to the 2.4.0 milestone Apr 15, 2019
@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Apr 15, 2019
@yciabaud
Copy link
Copy Markdown
Contributor Author

OK will do.

@merlimat merlimat merged commit 4b3fb0c into apache:master Apr 30, 2019
@yciabaud yciabaud deleted the custom-types branch April 30, 2019 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants