mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-30 18:57:21 +00:00
Re-run cargo fmt
This commit is contained in:
parent
23a0fc79f5
commit
f30ab89ad2
3 changed files with 26 additions and 5 deletions
|
@ -901,7 +901,11 @@ fn parse_scalar_subqueries() {
|
|||
fn parse_create_view() {
|
||||
let sql = "CREATE VIEW myschema.myview AS SELECT foo FROM bar";
|
||||
match verified_stmt(sql) {
|
||||
SQLStatement::SQLCreateView { name, query, materialized } => {
|
||||
SQLStatement::SQLCreateView {
|
||||
name,
|
||||
query,
|
||||
materialized,
|
||||
} => {
|
||||
assert_eq!("myschema.myview", name.to_string());
|
||||
assert_eq!("SELECT foo FROM bar", query.to_string());
|
||||
assert!(!materialized);
|
||||
|
@ -914,7 +918,11 @@ fn parse_create_view() {
|
|||
fn parse_create_materialized_view() {
|
||||
let sql = "CREATE MATERIALIZED VIEW myschema.myview AS SELECT foo FROM bar";
|
||||
match verified_stmt(sql) {
|
||||
SQLStatement::SQLCreateView { name, query, materialized } => {
|
||||
SQLStatement::SQLCreateView {
|
||||
name,
|
||||
query,
|
||||
materialized,
|
||||
} => {
|
||||
assert_eq!("myschema.myview", name.to_string());
|
||||
assert_eq!("SELECT foo FROM bar", query.to_string());
|
||||
assert!(materialized);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue