all AI news
DuckDB as the New jq
March 21, 2024, 8:36 p.m. |
Simon Willison's Weblog simonwillison.net
The DuckDB CLI tool can query JSON files directly, making it a surprisingly effective replacement for jq. Paul Gross demonstrates the following query:
select license->>'key' as license, count(*) from 'repos.json' group by 1
repos.json contains an array of {"license": {"key": "apache-2.0"}..} objects. This example query shows counts for each of those licenses.
Via lobste.rs
apache array cli count duckdb example files json key license making objects query replacement shows sql tool
More from simonwillison.net / Simon Willison's Weblog
Ham radio general exam question pool as JSON
1 day, 4 hours ago |
simonwillison.net
uv pip install --exclude-newer example
2 days, 6 hours ago |
simonwillison.net
Jobs in AI, ML, Big Data
Data Engineer
@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania
Artificial Intelligence – Bioinformatic Expert
@ University of Texas Medical Branch | Galveston, TX
Lead Developer (AI)
@ Cere Network | San Francisco, US
Research Engineer
@ Allora Labs | Remote
Ecosystem Manager
@ Allora Labs | Remote
Founding AI Engineer, Agents
@ Occam AI | New York