Skip to content

Commit

Permalink
Merge pull request #1828 from jqnatividad/split_partition-xref
Browse files Browse the repository at this point in the history
`docs`: cross-reference `split` & `partition` commands
  • Loading branch information
jqnatividad authored May 19, 2024
2 parents 32cf1ab + eac6f47 commit c3c3095
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cmd/partition.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
static USAGE: &str = r#"
Partitions the given CSV data into chunks based on the value of a column
Partitions the given CSV data into chunks based on the value of a column.
See `split` command to split a CSV data by row count, by number of chunks or
by kb-size.
The files are written to the output directory with filenames based on the
values in the partition column and the `--filename` flag.
Expand Down
2 changes: 2 additions & 0 deletions src/cmd/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ static USAGE: &str = r#"
Splits the given CSV data into chunks. It has three modes: by size (rowcount),
by number of chunks and by kb-size.
See `partition` command for splitting by a column value.
When splitting by size, the CSV data is split into chunks of the given number of
rows. The last chunk may have fewer rows if the number of records is not evenly
divisible by the given rowcount.
Expand Down

0 comments on commit c3c3095

Please sign in to comment.