I am having some trouble when trying to access the key with dot notation inside a struct.
When I do that, It gives this error.
SOLVED!
After looking up the JSON structure with "PRINT <topic_name> FROM BEGINNING,
I just had to create the structure according to the object in the key "value:".
I got confused with the data type that was generated with apache avro and forgot that I changed it to JSON, this way it modified the structure.