Commit 21e9bd2
committed
fix(map_entries): Improve edge case handling for missing keys and empty filtered results
- Change missing source key from warn+tags_on_failure to silent debug
log, consistent with other mutate-event processors
- Remove early return when all elements are filtered out by
exclude_null_empty_values, ensuring consistent List<Map> output type
- Update test and README to reflect new behavior1 parent 8c5bba7 commit 21e9bd2
3 files changed
Lines changed: 7 additions & 35 deletions
File tree
- data-prepper-plugins/mutate-event-processors
- src
- main/java/org/opensearch/dataprepper/plugins/processor/mutateevent
- test/java/org/opensearch/dataprepper/plugins/processor/mutateevent
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
| 752 | + | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
| 755 | + | |
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| |||
Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
| |||
92 | 85 | | |
93 | 86 | | |
94 | 87 | | |
95 | | - | |
96 | | - | |
| 88 | + | |
97 | 89 | | |
98 | 90 | | |
99 | 91 | | |
| |||
123 | 115 | | |
124 | 116 | | |
125 | 117 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 118 | + | |
129 | 119 | | |
130 | 120 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 121 | | |
135 | 122 | | |
136 | 123 | | |
| |||
Lines changed: 2 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 99 | | |
115 | 100 | | |
116 | 101 | | |
| |||
192 | 177 | | |
193 | 178 | | |
194 | 179 | | |
195 | | - | |
| 180 | + | |
196 | 181 | | |
197 | 182 | | |
198 | 183 | | |
| |||
204 | 189 | | |
205 | 190 | | |
206 | 191 | | |
207 | | - | |
| 192 | + | |
208 | 193 | | |
209 | 194 | | |
210 | 195 | | |
| |||
0 commit comments