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

bug: Compile fails when a schema avsc has a record name that starts with map_ or array_ #74

Open
eljeko opened this issue May 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@eljeko
Copy link
Collaborator

eljeko commented May 18, 2023

An Avro schema names that starts with map or array brakes the compile, eg..

{
  "type" : "record",
  "namespace" : "",
  "name" : "map_of_my_city",
  "fields" : [...]
}

{
  "type" : "record",
  "namespace" : "",
  "name" : "array_of_events",
  "fields" : [...]
}

In the go generate phase the strings that starts with map_ or array_ have a special meaning

The current workaround is to remove array_ or map_ as prefix for filed names.

@eljeko eljeko added the bug Something isn't working label May 18, 2023
@eljeko eljeko changed the title Compile fails when a schema avsc has a record name that start with map_ or array_ Compile fails when a schema avsc has a record name that starts with map_ or array_ May 18, 2023
@ugol ugol changed the title Compile fails when a schema avsc has a record name that starts with map_ or array_ bug: Compile fails when a schema avsc has a record name that starts with map_ or array_ Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant