Commit da6870d
authored
### Rationale for this change
Running parquet-scan without arguments currently triggers a confusing IOError instead of showing how to use the tool.
### What changes are included in this PR?
Updated the argument validation from argc < 1 (always false) to argc < 2.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
Yes.
Old behavior:
$ parquet-scan
Parquet error: IOError: Failed to open local file ''. Detail: [errno 2] No such file or directory
New behavior:
$ parquet-scan
Usage: parquet-scan [--batch-size=] [--columns=...]
* GitHub Issue: #49539
Authored-by: Dominique Belhachemi <db@domibel.de>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent 64a2525 commit da6870d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments