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

UUID LogicalType support for avdl #134

Open
niqdev opened this issue Apr 23, 2020 · 0 comments
Open

UUID LogicalType support for avdl #134

niqdev opened this issue Apr 23, 2020 · 0 comments

Comments

@niqdev
Copy link
Contributor

niqdev commented Apr 23, 2020

Hi,

we are sharing avdl schema (which in theory I can't touch) between teams and some strings are mapped like this

@logicalType("uuid")
string myUuid;

but in the generated class the annotations is completely ignored

// ...
case 0 => this.myUuid = {
  value.toString
}.asInstanceOf[String]
// ...

I saw in the code and from the example that it works perfectly for avsc schema, I also tried with

uuid myUuid;

similar to timestamp_ms like shown here which is mapped to an Instant instead of long, but that doesn't work either.

Any hints or how is it suppose to work? If it's a bug, I'm more than happy to fix it with some guidance! 😅

Thanks in advance for the help!

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

No branches or pull requests

1 participant