Commit 90fd8d2
committed
Serialize plan results to JSON compatible types earlier
When a plan returns a value that is serializable but contains a nested
value that is not (eg a list of an unserializable type), the check for
whether it could be serialized was too lenient and the unserializable
type would be stored only to fail later when it was sent to the message
bus.
Converting the result to a json compatible type (using mode='json')
earlier allows any issues with nested fields to be caught and handled
appropriately.1 parent 56e5b2c commit 90fd8d2
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments