Snowflake: DROP STREAM (#1973)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run

This commit is contained in:
Yoav Cohen 2025-07-24 21:45:51 +03:00 committed by GitHub
parent 6a5ef48921
commit 145922affe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 23 additions and 0 deletions

View file

@ -16359,3 +16359,21 @@ fn parse_create_user() {
_ => unreachable!(),
}
}
#[test]
fn parse_drop_stream() {
let sql = "DROP STREAM s1";
match verified_stmt(sql) {
Statement::Drop {
names, object_type, ..
} => {
assert_eq!(
vec!["s1"],
names.iter().map(ToString::to_string).collect::<Vec<_>>()
);
assert_eq!(ObjectType::Stream, object_type);
}
_ => unreachable!(),
}
verified_stmt("DROP STREAM IF EXISTS s1");
}