Files
arrow/cpp/tools
Dominique Belhachemi da6870deba GH-49539: [C++][Parquet] Fix argument count check in parquet_scan (#49540)
### 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>
2026-04-07 09:36:21 +02:00
..