Commit 4c7d253
feat: add optional JSON functions support
Add `datafusion-functions-json` as an optional feature (`json`), giving
Python users `json_get_str`, `json_get`, `->`, `->>` and other JSON
operators in SQL queries.
When built with `--features json`, JSON functions are automatically
registered with every SessionContext. Default builds are unaffected.
Tested locally: json_get_str extracts values, nested paths work,
GROUP BY on extracted JSON fields works.
Changes:
- Add `datafusion-functions-json` to workspace dependencies
- Add optional dependency and `json` feature flag to core crate
- Register JSON functions in SessionContext creation when feature is enabled
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5be412b commit 4c7d253
3 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
394 | 403 | | |
395 | 404 | | |
396 | 405 | | |
| |||
0 commit comments