Skip to content

Conversation

@clesaec
Copy link
Contributor

@clesaec clesaec commented Oct 25, 2022

What is the purpose of the change

Part of AVRO-3649 for rust.
PR for java is here

Verifying this change

(Please pick one of the following options)

This change added/updated tests and can be verified as follows:

  • run schema.rs unit test.
  • ./build.sh clean test (on lang/rust subfolder)

Documentation

  • Does this pull request introduce a new feature? yes
  • If yes, how is the feature documented? change doc is done on java PR.

@martin-g martin-g closed this Nov 8, 2022
@martin-g martin-g reopened this Nov 8, 2022
@github-actions github-actions bot added the Rust label Nov 8, 2022
@clesaec clesaec force-pushed the avro-3649_unionDefaultRust branch from 80dce4f to 985c1c7 Compare November 15, 2022 07:37
@KalleOlaviNiemitalo
Copy link
Contributor

What does "union inside union" mean in the title of this pull request? AFAICT the spec still does not allow unions as members of unions:

Unions may not immediately contain other unions.

@clesaec
Copy link
Contributor Author

clesaec commented Nov 15, 2022

Yes, title is not good : this means "default (value) for union" is of any type that is "inside union" type (and not only the first).
I will change title, trying to find a better.

@clesaec clesaec changed the title AVRO-3649: default for union inside union AVRO-3649: default value for union type should match any type inside the union type. Nov 15, 2022
@dkulp dkulp merged commit c28dbe9 into apache:master Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants