Skip to content

GH-49539: [C++][Parquet] Fix argument count check in parquet_scan#49540

Open
domibel wants to merge 1 commit intoapache:mainfrom
domibel:domibel-patch-fix-parquet_scan
Open

GH-49539: [C++][Parquet] Fix argument count check in parquet_scan#49540
domibel wants to merge 1 commit intoapache:mainfrom
domibel:domibel-patch-fix-parquet_scan

Conversation

@domibel
Copy link

@domibel domibel commented Mar 18, 2026

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-actions
Copy link

⚠️ GitHub issue #49539 has been automatically assigned in GitHub to PR creator.

@raulcd raulcd changed the title GH-49539: [C++] Fix argument count check in parquet_scan GH-49539: [C++][Parquet] Fix argument count check in parquet_scan Mar 18, 2026
Copy link
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Looks good to me, I've triggered CI. Instead of removing the PR template, could you fill it with the required sections? The message goes directly into the commit history and it's helpful for us to be consistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants