-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add parquet-fromcsv (#1) add command line tool for convert csv to parquet. * add `text` for non-rust documentation text * Update parquet/src/bin/parquet-fromcsv.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * Update parquet/src/bin/parquet-fromcsv.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * Update parquet/src/bin/parquet-fromcsv.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * Update parquet/src/bin/parquet-fromcsv.rs Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> * automate update help text * remove anyhow * add rat_exclude_files * update test_command_help * fix clippy warnings * add writer-version, max-row-group-size arg * fix cargo fmt lint Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
706 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
parquet 15.0.0 | ||
Apache Arrow <dev@arrow.apache.org> | ||
Binary to convert csv to Parquet | ||
|
||
USAGE: | ||
parquet [OPTIONS] --schema <SCHEMA> --input-file <INPUT_FILE> --output-file <OUTPUT_FILE> | ||
|
||
OPTIONS: | ||
-b, --batch-size <BATCH_SIZE> | ||
batch size | ||
|
||
[env: PARQUET_FROM_CSV_BATCHSIZE=] | ||
[default: 1000] | ||
|
||
-c, --parquet-compression <PARQUET_COMPRESSION> | ||
compression mode | ||
|
||
[default: SNAPPY] | ||
|
||
-d, --delimiter <DELIMITER> | ||
field delimiter | ||
|
||
default value: when input_format==CSV: ',' when input_format==TSV: 'TAB' | ||
|
||
-D, --double-quote <DOUBLE_QUOTE> | ||
double quote | ||
|
||
-e, --escape-char <ESCAPE_CHAR> | ||
escape charactor | ||
|
||
-f, --input-format <INPUT_FORMAT> | ||
input file format | ||
|
||
[default: csv] | ||
[possible values: csv, tsv] | ||
|
||
-h, --has-header | ||
has header | ||
|
||
--help | ||
Print help information | ||
|
||
-i, --input-file <INPUT_FILE> | ||
input CSV file | ||
|
||
-m, --max-row-group-size <MAX_ROW_GROUP_SIZE> | ||
max row group size | ||
|
||
-o, --output-file <OUTPUT_FILE> | ||
output Parquet file | ||
|
||
-q, --quote-char <QUOTE_CHAR> | ||
quate charactor | ||
|
||
-r, --record-terminator <RECORD_TERMINATOR> | ||
record terminator | ||
|
||
[possible values: lf, crlf, cr] | ||
|
||
-s, --schema <SCHEMA> | ||
message schema for output Parquet | ||
|
||
-V, --version | ||
Print version information | ||
|
||
-w, --writer-version <WRITER_VERSION> | ||
writer version |
Oops, something went wrong.