martin-g commented on code in PR #3373:
URL: https://github.com/apache/avro/pull/3373#discussion_r2454374287
##########
lang/c/src/value-json.c:
##########
@@ -352,26 +354,40 @@ avro_value_to_json_t(const avro_value_t *value)
union_schema = avro_value_get_schema(value);
branch_schema =
avro_schema_union_branch(union_schema, disc);
+
+ namespace = avro_schema_namespace(branch_schema);
Review Comment:
https://github.com/steven-aerts/avro/blob/46d87d9aa8964684e602f114292825b9fd5c2554/lang/c/src/schema.c#L1546-L1555
It seems avro_schema_namespace does not support schema reference, so it will
return NULL even if the referenced schema has a namespace.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]