You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add SQL DDL for creating and dropping user-defined cluster replica
sizes, gated behind the `enable_custom_cluster_replica_sizes` feature
flag (default: off).
Syntax:
CREATE CLUSTER REPLICA SIZE <name> (
CREDITS PER HOUR = '<numeric>',
[WORKERS = <n>],
[SCALE = <n>],
[MEMORY LIMIT = <bytes>],
[CPU LIMIT = <nanocpus>],
[DISK LIMIT = <bytes>],
[CPU EXCLUSIVE = <bool>],
[DISABLED = <bool>]
);
DROP CLUSTER REPLICA SIZE <name>;
Key behaviors:
- Feature-flag gated: requires `enable_custom_cluster_replica_sizes`
- Cannot create a size with a name that already exists (builtin or user)
- Cannot drop builtin sizes (those synced from env var)
- Cannot drop a size that is in use by an existing cluster replica
- CREDITS PER HOUR is required; WORKERS defaults to 1, SCALE defaults to 1
Implementation follows the established DDL pattern (NetworkPolicy):
parser -> planner -> sequencer -> catalog transact, with exhaustive
match coverage across all statement/plan/response dispatchers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments