Commit 18c26e0
authored
Do not create any producer if the output type of a function is void (apache#2756)
* Do not create any producer if the output type of a function is void
* Do not write if the record is null
* Revert the check for null1 parent 362f795 commit 18c26e0
File tree
2 files changed
+8
-10
lines changed- pulsar-functions/instance/src
- main/java/org/apache/pulsar/functions/sink
- test/java/org/apache/pulsar/functions/sink
2 files changed
+8
-10
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
| |||
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
286 | | - | |
| 290 | + | |
287 | 291 | | |
288 | 292 | | |
289 | 293 | | |
| |||
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 45 | + | |
53 | 46 | | |
54 | 47 | | |
55 | 48 | | |
| |||
169 | 162 | | |
170 | 163 | | |
171 | 164 | | |
172 | | - | |
| 165 | + | |
| 166 | + | |
173 | 167 | | |
174 | 168 | | |
175 | 169 | | |
| |||
0 commit comments