[ 
https://issues.apache.org/jira/browse/NIFI-7141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17051540#comment-17051540
 ] 

Pierre Villard commented on NIFI-7141:
--------------------------------------

Hi [~harmie], what kind of validation do you want to perform on the payload?

By definition Avro prevents field names to be only numerical and there is not 
much we can do about this (AVRO-153). Unless you accept to change the field 
names, you won't be able to write in Avro. If you can rename the fields/keys, 
then it'd be doable.

If I only use JSON for reader/writer, it works but it's probably not doing the 
validation you're looking for.

> ValidateRecord does not handle nested Map key type other than string
> --------------------------------------------------------------------
>
>                 Key: NIFI-7141
>                 URL: https://issues.apache.org/jira/browse/NIFI-7141
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>         Environment: Tested with 1.9.0 and 1.11.1 in Linux environment but 
> not related to operating system.
>            Reporter: Harri Miettinen
>            Priority: Major
>         Attachments: MapKeyInt.json, MapKeyInt.xml
>
>
> Hi
> We have some incoming data that where the type is map. Problem is that key is 
> int and not string which cause the map to have invalid data.
> Can Nifi add support for other data types for map keys as well?
> I have attached dummy example flow for example. 
> If there is any good workaround that would be good start.



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

Reply via email to