cockroachdb / cockroachdb/cockroach
backup: misleading syntax error for `RESTORE` when invalid option provided
Open
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.
Jira issue: CRDB-49401
Contributor guide
Assessment
This issue has not been assessed yet.