Skip to content
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

Improvements for article RE: non-auto-detect formats #1635

Merged
merged 1 commit into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/lakes/import.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function TabImport() {
</Link>
</p>
See{" "}
<Link href="https:/brimdata/brim/wiki/Importing-CSV-JSON-Parquet-and-ZST">
<Link href="https:/brimdata/brim/wiki/Importing-CSV%2C-JSON%2C-Parquet%2C-and-ZST">
docs
</Link>{" "}
for Zed platform support for{" "}
Expand Down
11 changes: 5 additions & 6 deletions docs/Importing-CSV,-JSON,-Parquet,-and-ZST.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ directory shown below for each platform.
| **macOS** | `/Applications/Brim.app/Contents/Resources/app.asar.unpacked/zdeps` |
| **Linux** | `/opt/Brim/resources/app.asar.unpacked/zdeps` |

Input file fomat can be specified via the `-i` option.
Input file format can be specified via the `-i` option.

```
$ zq -h
Expand All @@ -49,17 +49,17 @@ OPTIONS
```

Here's an example `zq` command line on macOS to preprocess the test data
from [addresses.csv](https://people.sc.fsu.edu/~jburkardt/data/csv/addresses.csv)
from [testxlsx_converted.csv](https://raw.githubusercontent.com/wireservice/csvkit/master/examples/testxlsx_converted.csv)
into ZNG.

```
$ /Applications/Brim.app/Contents/Resources/app.asar.unpacked/zdeps/zq -i csv addresses.csv > addresses.zng
$ /Applications/Brim.app/Contents/Resources/app.asar.unpacked/zdeps/zq -i csv testxlsx_converted.csv > testxlsx_converted.zng
```

**Note:** You may want perform other preprocessing at this phase, such as
> **Note:** You may want to perform other preprocessing at this phase, such as
invoking [`fuse`](https:/brimdata/zed/tree/main/docs/language/processors#fuse).

Now our `addresses.zng` can be imported in to Brim.
Now our `testxlsx_converted.zng` can be imported into Brim.

![Imported CSV](media/Imported-CSV.png)

Expand All @@ -69,4 +69,3 @@ If you're struggling with importing alternate file formats or just have
questions, we'd like to hear from you! Please join our
[public Slack](https://www.brimsecurity.com/join-slack/)
and speak up, or [open an issue](https:/brimdata/brim/wiki/Troubleshooting#opening-an-issue). Thanks!

Binary file modified docs/media/Imported-CSV.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.