Commit 24bc9dd
Task LAV-1754: DESC USER + SHOW PARAMETERS IN USER read surfaces (apache#2216)
Add `DESC[RIBE] USER <name>` rendering real Snowflake's 44-row
property/value/default/description table via a new
`__snowflake$describe_user` UDF that joins the user's jsonb property bag
with a static property catalog (stored value wins over default; derived
rows NAME/TYPE/PASSWORD/has_*-flags/LOCK_DETAILS computed from the bag).
NULL cells render as the literal string 'null', matching real Snowflake.
Parser: add `User` variant to `DescribeObjectType` and parse `DESC USER`.
Rewriter: route `DESC USER` to the new UDF. Wire the missing-user 002003
error position (DESC USER / DESCRIBE USER prefixes) so the verbatim
error snapshot (code/message/data incl. line/pos) matches real Snowflake.
New compat tests (snapshots captured on real Snowflake): fresh user,
CREATE with properties, ALTER SET/UNSET, missing-user error (snapshot,
no pytest.raises), and SHOW PARAMETERS IN USER NETWORK_POLICY no-regression.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 93298f3 commit 24bc9dd
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11545 | 11545 | | |
11546 | 11546 | | |
11547 | 11547 | | |
| 11548 | + | |
| 11549 | + | |
| 11550 | + | |
11548 | 11551 | | |
11549 | 11552 | | |
11550 | 11553 | | |
| |||
11562 | 11565 | | |
11563 | 11566 | | |
11564 | 11567 | | |
| 11568 | + | |
11565 | 11569 | | |
11566 | 11570 | | |
11567 | 11571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15399 | 15399 | | |
15400 | 15400 | | |
15401 | 15401 | | |
| 15402 | + | |
15402 | 15403 | | |
15403 | 15404 | | |
15404 | 15405 | | |
| |||
15410 | 15411 | | |
15411 | 15412 | | |
15412 | 15413 | | |
| 15414 | + | |
15413 | 15415 | | |
15414 | 15416 | | |
15415 | 15417 | | |
| |||
0 commit comments