mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
### 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>