Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/syntax-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ that edits or removes a committed one.

A reviewed errno is one whose message shows that Snowflake parsed the statement and then
refused it. Examples are a duplicate secret name (509008), a missing object to undrop (90025),
access control (3001), a required property (3172), an account restriction (93171) and an
application-only operation (98620). Internal errors (603), statement timeouts (630) and errors
that may come from the parser itself stay refused.
access control (3001), a required property (3172), an account restriction (93171), replication
that is not enabled for the account (3078) and an application-only operation (98620). Internal
errors (603), statement timeouts (630) and errors that may come from the parser itself stay
refused.
- `raw_record_sha256`, `run_audit_sha256` and `packet_sha256`: the hashes of the private raw
record, the private run audit and the submitted packet.
- Optional provenance: `case_hash`, `input_sha256`, `statement_index`, `statements_in_input`,
Expand Down
1 change: 1 addition & 0 deletions scripts/syntax_receipts/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
REVIEWED_SEMANTIC_ERRNOS: frozenset[int] = frozenset(
{
3001,
3078,
3172,
90025,
93171,
Expand Down
10 changes: 10 additions & 0 deletions tests/unit/scripts/syntax_receipts/test_import_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@
message="Statement reached its statement or warehouse timeout of 30 second(s).",
expected_classification=None,
),
ClassifyTestCase(
description="replication not enabled for the account is semantic",
errno=3078,
sqlstate="55000",
message="Replication is not enabled for your account.",
expected_classification=(
"semantic_error",
"errno 3078 SQLSTATE 55000, reviewed as semantic",
),
),
ClassifyTestCase(
description="an unreviewed errno without the compilation prefix is not established",
errno=926,
Expand Down
Loading