cockroachdb / cockroachdb/cockroach

backup: misleading syntax error for `RESTORE` when invalid option provided

Open
#144,511 2 comments 0 reactions 0 assignees View on GitHub
A-disaster-recovery branch-master branch-release-25.1 branch-release-25.2 C-bug
Dominant language
Go
Stars
32.5k
Forks
4.1k
PR merge metrics
PR metrics pending

Description

When an invalid option is provided to a `RESTORE` command, the error `ERROR: statement ignored: at or near "unsafe_incompatible_version": syntax error: The `RESTORE FROM ` syntax is no longer supported. Please use `RESTORE FROM IN ` is returned, which is misleading as the actual error is with the provided options.

Image

Jira issue: CRDB-49401

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.