sql,kv: SQL syntax for the RELOCATE statement is non-idiomatic #63219
Labels
A-kv-distribution
Relating to rebalancing and leasing.
A-sql-syntax
Issues strictly related to the SQL grammar, with no semantic aspect
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-kv
KV Team
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
commits af80850 and af80850 have added the syntax
RELOCATE VOTERS
andRELOCATE NON_VOTERS
The prefix
NON_
in front of a keyword is highly non-idiomatic for SQL: the goal of the SQL syntax it to use only standalone english words, and use adjectives/adverbs/prepositions to indicate inclusion/exclusion.For this use case, the more idiomatic syntax would be:
RELOCATE ONLY VOTERS
/RELOCATE VOTERS ONLY
RELOCATE EXCLUDING VOTERS
/RELOCATE VOTERS EXCLUDED
Found while working on rebasing #60676.
cc @mwang1026 @aayushshah15 for triage.
The text was updated successfully, but these errors were encountered: