You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love a dialog that asks the user which format their data is in to pass to zed load. I've got a csv that it thinks it's zson so it fails with a strange error.
A possible workflow is:
Import the file
If there is an auto detect error, prompt the user for the type of file
It would also be nice to give a summary of what the auto detect detected.
Since users may sometimes know their format in advance, I'd also recommend we offer them the ability to explicitly specify the format on the first try. For instance, brimdata/super#3865 describes the perils of trying to send certain JSON through the auto-detector. If a user works with this kind of JSON a lot, they'd surely appreciate a way to avoid the failure round-trip.
In conclusion, maybe the "prompt" in @jameskerr's list above could be some kind of pull-down list of the supported formats, with "Auto-detect" as the default. Then if the auto-detect fails, the same list could be offered again.
Also, the "summary of what the auto detect detected" exists today as something like this:
When looking at this while pretending to be a new user, I admit this could be somewhat confusing, since it's not immediately obvious that each line represents why it failed to auto-detect as that format.
The text was updated successfully, but these errors were encountered:
The attached video uses the JSON test data nfcapd.json.gz from brimdata/super#3865. As shown, when this data is subject to attempted load via auto-detect by simple drag & drop into the New Pool window with default settings, it fails with a message showing why each format's reader felt it could not successfully read the file, including the JSON one saying "buffer exceeded max size" as we know from brimdata/super#3865. At that point I'm able to select JSON instead of auto-detect explicitly from the pull-down, and now it works.
Verify.mp4
Per the changes from #2601, the pull-down now has options for all the formats that are loadable via the Zed API, which currently consists of:
CSV
JSON (which also handles NSJDON)
Line (which is handy for turning newline-delimited text files into a non-record value-per-line)
In #1913, @jameskerr remarked:
Since users may sometimes know their format in advance, I'd also recommend we offer them the ability to explicitly specify the format on the first try. For instance, brimdata/super#3865 describes the perils of trying to send certain JSON through the auto-detector. If a user works with this kind of JSON a lot, they'd surely appreciate a way to avoid the failure round-trip.
In conclusion, maybe the "prompt" in @jameskerr's list above could be some kind of pull-down list of the supported formats, with "Auto-detect" as the default. Then if the auto-detect fails, the same list could be offered again.
Also, the "summary of what the auto detect detected" exists today as something like this:
When looking at this while pretending to be a new user, I admit this could be somewhat confusing, since it's not immediately obvious that each line represents why it failed to auto-detect as that format.
The text was updated successfully, but these errors were encountered: