↓ Skip to main content

“In short, zq is based on stateful dataflow while jq is based on stateless dataflow.”

Steve McCannebrimdata.io ↗

jq is easy as long as your problem matches a cookie-cutter pattern. Anything that needs state forces you to slurp the whole input into one array and fight your way out. Everyone has a jq one-liner they copied and can’t read. zq bets that a query language should keep state like a query language.