You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Paolo De Dominicis (Jira)" <ji...@apache.org> on 2020/11/27 18:08:00 UTC

[jira] [Created] (AVRO-2993) [Multiple] Nested maps in Avro schema definition

Paolo De Dominicis created AVRO-2993:
----------------------------------------

             Summary: [Multiple] Nested maps in Avro schema definition
                 Key: AVRO-2993
                 URL: https://issues.apache.org/jira/browse/AVRO-2993
             Project: Apache Avro
          Issue Type: Improvement
    Affects Versions: 1.10.0
         Environment: Avro 1.10.0
            Reporter: Paolo De Dominicis


Hello,

I was wondering if I could place a nested map in my Avro schema definition, with the possibility of adding "unlimited" nested maps inside. Now, I can only use a _Union:_

 
{code:java}
{
 "name": "payload",
 "type": {
 "type": "map",
 "values": ["null", "string", "long", "boolean"],
 "default": "null"
 }
 },{code}
 

but, this way, I cannot have a custom payload that can have fields changing every time, or other nested data.. in other words, I'd need *dynamic field type.*

 

Any idea of how this could be made?

 

 

Thanks



--
This message was sent by Atlassian Jira
(v8.3.4#803005)