You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @crypticmind, avsc doesn't support decimal logical type sugar in IDL files yet. In the meantime, you can use annotations. It would look something like:
protocol P {
record R {
@logicalType("decimal") @precision(10) @scale(2) bytes dec;
}
}
If you use the type in many places, you can also add it via typeRefs:
I have a schema like this:
However, protocol parsing chokes on the opening parenthesis with:
As I see it, avsc support logical types from JSON schema, but not from IDL. Is there any way to enable this, or does the IDL parser require updating?
The text was updated successfully, but these errors were encountered: