Commit 713e95f
Fix(snowflake): parse GET_DDL #unknown_policy in ROW ACCESS POLICY [CLAUDE] (#7491)
* Fix(snowflake): parse GET_DDL #unknown_policy in ROW ACCESS POLICY
Snowflake's GET_DDL outputs `#unknown_policy` (without ON clause) when
the user lacks privileges to see the actual policy name. Handle the `#`
token prefix in the parser and ensure it is never quoted in output.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix: ruff-format and mypy type errors
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix: use X | None instead of t.Optional[X] per ruff UP007
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix: use Var instead of Identifier for #unknown_policy to avoid quoting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Fix: simplify #unknown_policy parsing to use _parse_var directly
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3835725 commit 713e95f
3 files changed
Lines changed: 26 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
863 | 863 | | |
864 | 864 | | |
865 | 865 | | |
866 | | - | |
| 866 | + | |
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
990 | 996 | | |
991 | 997 | | |
992 | 998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5973 | 5973 | | |
5974 | 5974 | | |
5975 | 5975 | | |
| 5976 | + | |
| 5977 | + | |
| 5978 | + | |
| 5979 | + | |
| 5980 | + | |
| 5981 | + | |
| 5982 | + | |
| 5983 | + | |
| 5984 | + | |
| 5985 | + | |
5976 | 5986 | | |
5977 | 5987 | | |
5978 | 5988 | | |
| |||
0 commit comments