-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NIFI-8135 allow CHOICE data types in conversion of Records to Java Maps
Signed-off-by: Matt Burgess <mattyb149@apache.org> This closes #7746
- Loading branch information
1 parent
d4014c7
commit aac71c5
Showing
7 changed files
with
183 additions
and
62 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
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
21 changes: 21 additions & 0 deletions
21
...e/nifi-jolt-record-processors/src/test/resources/TestJoltTransformRecord/flattenSpec.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,21 @@ | ||
[ | ||
{ | ||
"operation": "shift", | ||
"spec": { "*": "record.&" } | ||
}, | ||
{ | ||
"operation": "shift", | ||
"spec": { | ||
"record": { | ||
"*": { | ||
"$": "TValue[#2].name", | ||
"@": "TValue[#2].value" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"operation": "default", | ||
"spec": { "TValue[]": { "*": { "class": "unclass" } } } | ||
} | ||
] |
21 changes: 21 additions & 0 deletions
21
...fi-jolt-record-processors/src/test/resources/TestJoltTransformRecord/flattenedOutput.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,21 @@ | ||
[ { | ||
"TValue" : [ { | ||
"name" : "datetime", | ||
"value" : "2023-10-06 20:36:09.937019+00:00", | ||
"class" : "unclass" | ||
}, { | ||
"name" : "Eta", | ||
"value" : "", | ||
"class" : "unclass" | ||
} ] | ||
}, { | ||
"TValue" : [ { | ||
"name" : "datetime", | ||
"value" : "2023-08-24 17:07:03.334170+00:00", | ||
"class" : "unclass" | ||
}, { | ||
"name" : "Eta", | ||
"value" : "{Day=15, Hour=6, Minute=0, Month=8}", | ||
"class" : "unclass" | ||
} ] | ||
} ] |
Oops, something went wrong.