-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading larger JSON arrays #2677
Comments
brim-bot
pushed a commit
to brimdata/brimcap
that referenced
this issue
Sep 29, 2021
…o" by nwt This is an auto-generated commit with a Zed dependency update. The Zed PR brimdata/super#3123, authored by @nwt, has been merged. decode top-level array incrementally in zio/jsonio Reading a large, top-level JSON array with zio/jsonio.Reader is impractical because it decodes the full input on the first call to its Read method. Decode top-level arrays incrementally instead. Closes brimdata/super#2677.
brim-bot
pushed a commit
to brimdata/brimcap
that referenced
this issue
Sep 29, 2021
…o" by nwt This is an auto-generated commit with a Zed dependency update. The Zed PR brimdata/super#3123, authored by @nwt, has been merged. decode top-level array incrementally in zio/jsonio Reading a large, top-level JSON array with zio/jsonio.Reader is impractical because it decodes the full input on the first call to its Read method. Decode top-level arrays incrementally instead. Closes brimdata/super#2677.
brim-bot
pushed a commit
to brimdata/zui
that referenced
this issue
Sep 29, 2021
…o" by nwt This is an auto-generated commit with a Zed dependency update. The Zed PR brimdata/super#3123, authored by @nwt, has been merged. decode top-level array incrementally in zio/jsonio Reading a large, top-level JSON array with zio/jsonio.Reader is impractical because it decodes the full input on the first call to its Read method. Decode top-level arrays incrementally instead. Closes brimdata/super#2677.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While drafting the article for brimdata/brimcap#72 I easily bumped into the limits of the JSON reader that was introduced in #2573.
Using the nfdump toolset, I created some NetFlow records based on my favorite 500 MB wrccdc pcap. Its options include a
-o json
that outputs an array of JSON objects, but there's no NDJSON option. This ultimately led to the creation of the attached netflow.json.gz, which uncompresses to over 31 MB, which is enough to exceed the limits as of Zed commitdc82704b
.As mentioned above, the JSON is an array of objects.
@mccanne noted a couple ways we could go about dealing with this better:
Given the care we've taken to minimize hard ceilings in the tools, I'd lean toward the second option.
The text was updated successfully, but these errors were encountered: