Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapter: add hint to "unknown cluster" error #27038

Open
Tracked by #15594
chaas opened this issue May 10, 2024 · 0 comments
Open
Tracked by #15594

adapter: add hint to "unknown cluster" error #27038

chaas opened this issue May 10, 2024 · 0 comments
Labels
A-ADAPTER Topics related to the ADAPTER layer

Comments

@chaas
Copy link
Contributor

chaas commented May 10, 2024

If you set your cluster session configuration parameter value to an invalid cluster name then try to execute a query, the error is unhelpful

materialize=> SELECT * FROM winning_bids;
ERROR:  unknown cluster 'foo'

We provide a much better hint for the SET command notice, and should provide that hint for this error too.

SET command notice hint:

materialize=> SET CLUSTER TO foo;
NOTICE:  cluster "foo" does not exist
HINT:  Create the cluster with CREATE CLUSTER or pick an extant cluster with SET CLUSTER = name. List available clusters with SHOW CLUSTERS.
@chaas chaas added the A-ADAPTER Topics related to the ADAPTER layer label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ADAPTER Topics related to the ADAPTER layer
Projects
None yet
Development

No branches or pull requests

1 participant