Commit 4c7fb60
Add JSON wire format type conversions for UDF data types
Extend JSONEncoder.default() to handle datetime, date, timedelta, and
Decimal types that were missing from the JSON format path. These types
were added to the ROWDAT_1 binary format but the JSON encoder only
handled bytes→base64. Without this, json.dumps() raises TypeError when
a UDF returns any of these types via FORMAT JSON.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a22fc43 commit 4c7fb60
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
39 | 57 | | |
40 | 58 | | |
41 | 59 | | |
| |||
0 commit comments