-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add parquet-tools --------- Co-authored-by: Keita Iwabuchi <[email protected]>
- Loading branch information
Showing
3 changed files
with
248 additions
and
48 deletions.
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,80 @@ | ||
[ | ||
{ | ||
"cmd": "rowcount", | ||
"desc": "Return the number of rows in parquet files. If no subcommand option was specified, return the value stored in the metadata without reading the whole data or counting the number of lines.", | ||
"req": [ | ||
{ | ||
"key": "i", | ||
"value": "path", | ||
"desc": "Parquet file path or a directory path that contains parquet files. All parquet files must have the same schema." | ||
} | ||
], | ||
"opt": [ | ||
{ | ||
"key": "r", | ||
"desc": "Read rows w/o converting." | ||
}, | ||
{ | ||
"key": "v", | ||
"desc": "Read rows converting to arrays of std::variant." | ||
}, | ||
{ | ||
"key": "j", | ||
"desc": "Read rows converting to arrays of JSON objects." | ||
} | ||
] | ||
}, | ||
{ | ||
"cmd": "schema", | ||
"desc": "Show the schemas of parquet files.", | ||
"req": [ | ||
{ | ||
"key": "i", | ||
"value": "path", | ||
"desc": "Parquet file path or a directory path that contains parquet files. All parquet files must have the same schema." | ||
} | ||
] | ||
}, | ||
{ | ||
"cmd": "dump", | ||
"desc": "Dump data to files. One output file per rank.", | ||
"req": [ | ||
{ | ||
"key": "i", | ||
"value": "path", | ||
"desc": "Parquet file path or a directory path that contains parquet files. All parquet files must have the same schema." | ||
}, | ||
{ | ||
"key": "o", | ||
"value": "path", | ||
"desc": "Prefix of output files." | ||
} | ||
], | ||
"opt": [ | ||
{ | ||
"key": "v", | ||
"desc": "Dump rows converting to arrays of std::variant (default)" | ||
}, | ||
{ | ||
"key": "j", | ||
"desc": "Dump rows converting to arrays of JSON objects." | ||
} | ||
] | ||
}, | ||
{ | ||
"cmd": "convert", | ||
"desc": "Convert files to parquet files. Currently, only CSV is supported.", | ||
"req": [ | ||
{ | ||
"key": "i", | ||
"value": "path", | ||
"desc": "Path to an input non-parquet file or to a directory that contains non-parquet files. All CSV files must have the same column types." | ||
}, | ||
{ | ||
"key": "o", | ||
"value": "path", | ||
"desc": "Prefix of output parquet files." | ||
} | ||
] | ||
} | ||
] |