Skip to content

sql: a query error is reported but the process exits 0 #25

Description

@Vonng

mcli sql --query "select * frm s3object" ALIAS/BUCKET/rows.csv prints <ERROR> Unable to run sql 1:10: unexpected token "frm" (expected "FROM") to stderr, writes nothing to stdout — and exits 0.

Observed with the 20260831 release candidate and with the published 20260806 client (10 of 10 runs each) during the PR #24 soak. mainSQL reports per-object failures through errorIf so that a --recursive run continues past one bad object, and the final exit status never reflects that any object failed. Automation that checks the exit code cannot tell a failed query from an empty result.

Not a regression of this release; upstream MinIO Client behaves the same. Tracking so the release note can point at it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VX7dtHJ4q7GJ1YDYeXLmjW

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions