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

handle JsonNodes as arguments for default values in FieldBuilders #382

Open
radai-rosenblatt opened this issue Sep 14, 2022 · 0 comments
Open

Comments

@radai-rosenblatt
Copy link
Contributor

otherwise:

Unknown datum class: class com.fasterxml.jackson.databind.node.IntNode
org.apache.avro.AvroRuntimeException: Unknown datum class: class com.fasterxml.jackson.databind.node.IntNode
	at org.apache.avro.util.internal.JacksonUtils.toJson(JacksonUtils.java:96)
	at org.apache.avro.util.internal.JacksonUtils.toJsonNode(JacksonUtils.java:53)
	at org.apache.avro.Schema$Field.<init>(Schema.java:591)
	at com.linkedin.avroutil1.compatibility.avro110.FieldBuilder110.build(FieldBuilder110.java:109)
	at com.linkedin.avroutil1.compatibility.AvroCompatibilityHelper.createSchemaField(AvroCompatibilityHelper.java:1012)
	at com.linkedin.avroutil1.compatibility.AvroCompatibilityHelper.createSchemaField(AvroCompatibilityHelper.java:1016)

ideally we deserialize the json using the schema for the field

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