[jira] [Updated] (NIFI-5678) ValidateRecord does not handle Map type correctly

2019-02-28 Thread Joseph Percivall (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joseph Percivall updated NIFI-5678:
---
Attachment: Nested_map_record_failing_validation.xml

> ValidateRecord does not handle Map type correctly
> -
>
> Key: NIFI-5678
> URL: https://issues.apache.org/jira/browse/NIFI-5678
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Reporter: Matt Burgess
>Assignee: Matt Burgess
>Priority: Major
> Fix For: 1.8.0
>
> Attachments: Nested_map_record_failing_validation.xml
>
>
> Consider the following Avro Schema:
> {code}
> {
> "name" : "test",
> "type" : "record",
> "fields" : [ {
> "name" : "field1",
> "type" : {
> "type" : "map",
> "values" : "string"
> }
> } ]
> }
> {code}
> and corresponding JSON data adhering to the schema:
> {code}
> [{
> "field1": {
> "toto" : "v1",
> "titi" : "v2"
> }
> }]
> {code}
> ValidateRecord marks the record as invalid though it should be valid. The 
> message in the provenance event is "Record #1 is invalid due to:
> MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
> type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
> type MAP[STRING]".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-5678) ValidateRecord does not handle Map type correctly

2018-10-15 Thread Mark Payne (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Payne updated NIFI-5678:
-
   Resolution: Fixed
Fix Version/s: 1.8.0
   Status: Resolved  (was: Patch Available)

> ValidateRecord does not handle Map type correctly
> -
>
> Key: NIFI-5678
> URL: https://issues.apache.org/jira/browse/NIFI-5678
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Reporter: Matt Burgess
>Assignee: Matt Burgess
>Priority: Major
> Fix For: 1.8.0
>
>
> Consider the following Avro Schema:
> {code}
> {
> "name" : "test",
> "type" : "record",
> "fields" : [ {
> "name" : "field1",
> "type" : {
> "type" : "map",
> "values" : "string"
> }
> } ]
> }
> {code}
> and corresponding JSON data adhering to the schema:
> {code}
> [{
> "field1": {
> "toto" : "v1",
> "titi" : "v2"
> }
> }]
> {code}
> ValidateRecord marks the record as invalid though it should be valid. The 
> message in the provenance event is "Record #1 is invalid due to:
> MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
> type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
> type MAP[STRING]".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-5678) ValidateRecord does not handle Map type correctly

2018-10-10 Thread Matt Burgess (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess updated NIFI-5678:
---
Status: Patch Available  (was: In Progress)

> ValidateRecord does not handle Map type correctly
> -
>
> Key: NIFI-5678
> URL: https://issues.apache.org/jira/browse/NIFI-5678
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Reporter: Matt Burgess
>Assignee: Matt Burgess
>Priority: Major
>
> Consider the following Avro Schema:
> {code}
> {
> "name" : "test",
> "type" : "record",
> "fields" : [ {
> "name" : "field1",
> "type" : {
> "type" : "map",
> "values" : "string"
> }
> } ]
> }
> {code}
> and corresponding JSON data adhering to the schema:
> {code}
> [{
> "field1": {
> "toto" : "v1",
> "titi" : "v2"
> }
> }]
> {code}
> ValidateRecord marks the record as invalid though it should be valid. The 
> message in the provenance event is "Record #1 is invalid due to:
> MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
> type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
> type MAP[STRING]".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-5678) ValidateRecord does not handle Map type correctly

2018-10-10 Thread Matt Burgess (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess updated NIFI-5678:
---
Description: 
Consider the following Avro Schema:
{code}
{
"name" : "test",
"type" : "record",
"fields" : [ {
"name" : "field1",
"type" : {
"type" : "map",
"values" : "string"
}
} ]
}
{code}
and corresponding JSON data adhering to the schema:
{code}
[{
"field1": {
"toto" : "v1",
"titi" : "v2"
}
}]
{code}
ValidateRecord marks the record as invalid though it should be valid. The 
message in the provenance event is "Record #1 is invalid due to:
MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
type MAP[STRING]".

  was:
Consider the following Avro Schema:
{code}
{
"name" : "test",
"type" : "record",
"fields" : [ {
"name" : "field1",
"type" : {
"type" : "map",
"values" : "string"
}
} ]
}
{code}
and corresponding JSON data adhering to the schema:
{code}
[{
"field1": {
"toto" : "v1",
"titi" : "v2"
}
}]
{code}
ValidateRecord marks the record as invalid though it should be valid. The 
message in the provenance event is "Record #1 is invalid due to:
MapRecord[\{toto=v1, titi=v2\}] is not a valid value for /field1: Value is of 
type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
type MAP[STRING]".


> ValidateRecord does not handle Map type correctly
> -
>
> Key: NIFI-5678
> URL: https://issues.apache.org/jira/browse/NIFI-5678
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Reporter: Matt Burgess
>Priority: Major
>
> Consider the following Avro Schema:
> {code}
> {
> "name" : "test",
> "type" : "record",
> "fields" : [ {
> "name" : "field1",
> "type" : {
> "type" : "map",
> "values" : "string"
> }
> } ]
> }
> {code}
> and corresponding JSON data adhering to the schema:
> {code}
> [{
> "field1": {
> "toto" : "v1",
> "titi" : "v2"
> }
> }]
> {code}
> ValidateRecord marks the record as invalid though it should be valid. The 
> message in the provenance event is "Record #1 is invalid due to:
> MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
> type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
> type MAP[STRING]".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-5678) ValidateRecord does not handle Map type correctly

2018-10-10 Thread Matt Burgess (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess updated NIFI-5678:
---
Description: 
Consider the following Avro Schema:
{code}
{
"name" : "test",
"type" : "record",
"fields" : [ {
"name" : "field1",
"type" : {
"type" : "map",
"values" : "string"
}
} ]
}
{code}
and corresponding JSON data adhering to the schema:
{code}
[{
"field1": {
"toto" : "v1",
"titi" : "v2"
}
}]
{code}
ValidateRecord marks the record as invalid though it should be valid. The 
message in the provenance event is "Record #1 is invalid due to:
MapRecord[\{toto=v1, titi=v2\}] is not a valid value for /field1: Value is of 
type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
type MAP[STRING]".

  was:
Consider the following Avro Schema:
{code}
{
"name" : "test",
"type" : "record",
"fields" : [ {
"name" : "field1",
"type" : {
"type" : "map",
"values" : "string"
}
} ]
}
{code}
and corresponding JSON data adhering to the schema:
{code}
[{
"field1": {
"toto" : "v1",
"titi" : "v2"
}
}]
{code}
ValidateRecord marks the record as invalid though it should be valid. The 
message in the provenance event is "Record #1 is invalid due to:
MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
type MAP[STRING]".


> ValidateRecord does not handle Map type correctly
> -
>
> Key: NIFI-5678
> URL: https://issues.apache.org/jira/browse/NIFI-5678
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Reporter: Matt Burgess
>Priority: Major
>
> Consider the following Avro Schema:
> {code}
> {
> "name" : "test",
> "type" : "record",
> "fields" : [ {
> "name" : "field1",
> "type" : {
> "type" : "map",
> "values" : "string"
> }
> } ]
> }
> {code}
> and corresponding JSON data adhering to the schema:
> {code}
> [{
> "field1": {
> "toto" : "v1",
> "titi" : "v2"
> }
> }]
> {code}
> ValidateRecord marks the record as invalid though it should be valid. The 
> message in the provenance event is "Record #1 is invalid due to:
> MapRecord[\{toto=v1, titi=v2\}] is not a valid value for /field1: Value is of 
> type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
> type MAP[STRING]".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-5678) ValidateRecord does not handle Map type correctly

2018-10-10 Thread Matt Burgess (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess updated NIFI-5678:
---
Description: 
Consider the following Avro Schema:
{code}
{
"name" : "test",
"type" : "record",
"fields" : [ {
"name" : "field1",
"type" : {
"type" : "map",
"values" : "string"
}
} ]
}
{code}
and corresponding JSON data adhering to the schema:
{code}
[{
"field1": {
"toto" : "v1",
"titi" : "v2"
}
}]
{code}
ValidateRecord marks the record as invalid though it should be valid. The 
message in the provenance event is "Record #1 is invalid due to:
MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
type MAP[STRING]".

  was:
Consider the following Avro Schema:

{{{
"name" : "test",
"type" : "record",
"fields" : [ {
"name" : "field1",
"type" : {
"type" : "map",
"values" : "string"
}
} ]
}}}

and corresponding JSON data adhering to the schema:

{{[{
"field1": {
"toto" : "v1",
"titi" : "v2"
}
}]}}

ValidateRecord marks the record as invalid though it should be valid. The 
message in the provenance event is "Record #1 is invalid due to:
MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
type MAP[STRING]".


> ValidateRecord does not handle Map type correctly
> -
>
> Key: NIFI-5678
> URL: https://issues.apache.org/jira/browse/NIFI-5678
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Reporter: Matt Burgess
>Priority: Major
>
> Consider the following Avro Schema:
> {code}
> {
> "name" : "test",
> "type" : "record",
> "fields" : [ {
> "name" : "field1",
> "type" : {
> "type" : "map",
> "values" : "string"
> }
> } ]
> }
> {code}
> and corresponding JSON data adhering to the schema:
> {code}
> [{
> "field1": {
> "toto" : "v1",
> "titi" : "v2"
> }
> }]
> {code}
> ValidateRecord marks the record as invalid though it should be valid. The 
> message in the provenance event is "Record #1 is invalid due to:
> MapRecord[{toto=v1, titi=v2}] is not a valid value for /field1: Value is of 
> type org.apache.nifi.serialization.record.MapRecord but was expected to be of 
> type MAP[STRING]".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)