Skip to content

Commit

Permalink
Fix link & typos, then use better CSV test data (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz authored May 13, 2021
1 parent e6b4def commit c2c2863
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
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.

0 comments on commit c2c2863

Please sign in to comment.