forked from apache/nifi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit test to reproduce the error with QueryRecord
- Loading branch information
1 parent
c296099
commit 1016b4a
Showing
5 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
.../nifi-standard-processors/src/test/resources/TestQueryRecord/input/fields-value-name.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[ | ||
{ | ||
"field" : | ||
[ | ||
{ | ||
"name" : "id", | ||
"value" : "id-1" | ||
}, { | ||
"name" : "country", | ||
"value" : "France" | ||
}, { | ||
"name" : "language", | ||
"value" : "French" | ||
} | ||
] | ||
}, { | ||
"field" : | ||
[ | ||
{ | ||
"name" : "id", | ||
"value" : "id-2" | ||
}, { | ||
"name" : "country", | ||
"value" : "Belgium" | ||
}, { | ||
"name" : "language", | ||
"value" : "French" | ||
} | ||
] | ||
} | ||
] |
17 changes: 17 additions & 0 deletions
17
...nifi-standard-processors/src/test/resources/TestQueryRecord/output/fields-value-name.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"field" : | ||
[ | ||
{ | ||
"name" : "id", | ||
"value" : "id-1" | ||
}, { | ||
"name" : "country", | ||
"value" : "France" | ||
}, { | ||
"name" : "language", | ||
"value" : "French" | ||
} | ||
] | ||
} | ||
] |
20 changes: 20 additions & 0 deletions
20
...nifi-standard-processors/src/test/resources/TestQueryRecord/schema/fields-value-name.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "docs", | ||
"namespace": "doc", | ||
"type": "record", | ||
"fields": [ { | ||
"name" : "field", | ||
"type" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "record", | ||
"name" : "record", | ||
"namespace" : "name", | ||
"fields" : [ | ||
{"name": "name", "type": "string"}, | ||
{"name": "value", "type": "string"} | ||
] | ||
} | ||
} | ||
} ] | ||
} |