sql: SET should report a warning/NOTICE when setting a custom var with the same name as a cluster setting #74375
Labels
A-sql-semantics
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
E-easy
Easy issue to tackle, requires little or no CockroachDB experience
good first issue
S-3-ux-surprise
Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Describe the problem
Followup to #74373 and #70033
I was running some tests and was mistakenly typing
SET trace.debug.enable = on
instead of
SET CLUSTER SETTING ...
and the statement was succeeding (#70033) but I wasn't getting the result I wanted.
I feel it is defective UX that I did not get any feedback about the fact I wasn't using the right statement.
Prior to #70033, such a mistake was clear.
Expected behavior
I would like
SET
to report a warning/notice when the name given is also a valid cluster setting.The text was updated successfully, but these errors were encountered: