Skip to content
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

Support lists, arrays, and maps in sinks #7080

Merged
merged 2 commits into from Jun 17, 2021

Conversation

umanwizard
Copy link
Contributor

The first commit is the actual work. The second commit is to make it possible to write .td tests involving Avro maps.

@umanwizard
Copy link
Contributor Author

Fixes #6645

@umanwizard
Copy link
Contributor Author

Tests are failing due to #7081 , but this is RFAL

Copy link
Contributor

@aljoscha aljoscha left a comment

Choose a reason for hiding this comment

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

The changes look good to me! I had one nit, but please feel free to ignore.

$ kafka-verify format=avro sink=materialize.public.map_sink sort-messages=true
{"before": null, "after": {"row": {"map": {"a": {"int": 1}, "b": {"int": 2}}}}}

> CREATE VIEW list_data (list) AS SELECT LIST[1, 2];
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: for completeness we could add a test for ARRAY as well, but we discourage their use so it's probably ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I decided not to test for it since it's highly discouraged and therefore IMO not really part of the public API.

@umanwizard umanwizard merged commit 386a071 into MaterializeInc:main Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants