Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.4.0
-
None
-
None
Description
This is a follow-up for https://issues.apache.org/jira/browse/SPARK-25718.
It would be great if Spark could support recursive references in Avro schemas as currently this is disabled and the following exception is thrown:
org.apache.spark.sql.avro.IncompatibleSchemaException: Found recursive reference in Avro schema, which can not be processed by Spark: { "type": "record", "name": "Struct", "fields": [ { "name": "fields", "type": [ "null", { "type": "array", "items": { "type": "record", "name": "fields", "fields": [ { "name": "value", "type": [ "null", "string" ], "default": null } ] } } ], "default": null } ] }
I would appreciate it if someone could comment on the overall effort to make recursive Avro schemas work in Spark and whether or not there are any API restrictions that could potentially hinder the implementation, thanks.
Attachments
Issue Links
- is related to
-
SPARK-25718 Detect recursive reference in Avro schema and throw exception
- Resolved