From ee31878b947257db306f735d52b38b942708c178 Mon Sep 17 00:00:00 2001 From: Amogh-Bharadwaj Date: Fri, 15 Sep 2023 20:53:18 +0530 Subject: [PATCH] removes test as its in sqlparser --- nexus/server/tests/server_test.rs | 24 ------------------------ nexus/sqlparser-rs | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/nexus/server/tests/server_test.rs b/nexus/server/tests/server_test.rs index 0b262b087f..9412199fb9 100644 --- a/nexus/server/tests/server_test.rs +++ b/nexus/server/tests/server_test.rs @@ -223,30 +223,6 @@ fn query_unknown_peer_doesnt_crash_server() { assert!(res.is_ok()); } -#[test] -fn mirror_if_not_exists() { - let server = PeerDBServer::new(); - let mut client = server.connect_dying(); - - create_peers::create_bq::create(&mut client); - create_peers::create_pg::create(&mut client); - // create a mirror - let create_query = "CREATE MIRROR test1 FROM pg_test TO bq_test WITH TABLE MAPPING(public.a:a);"; - let res = client.simple_query(create_query); - assert!(res.is_ok()); - - // test if not exists clause - let create_query_again_with_clause = "CREATE MIRROR IF NOT EXISTS test1 - FROM pg_test TO bq_test WITH TABLE MAPPING(public.a:a);"; - let res = client.simple_query(create_query_again_with_clause); - assert!(res.is_ok()); - - let create_query_again_but_without_clause = "CREATE MIRROR test1 - FROM pg_test TO bq_test WITH TABLE MAPPING(public.a:a);"; - let res = client.simple_query(create_query_again_but_without_clause); - assert!(res.is_err()); -} - #[test] #[ignore = "requires some work for extended query prepares on bigquery."] fn extended_query_protocol_no_params_bq() { diff --git a/nexus/sqlparser-rs b/nexus/sqlparser-rs index 1532c918f7..92bc0e62d8 160000 --- a/nexus/sqlparser-rs +++ b/nexus/sqlparser-rs @@ -1 +1 @@ -Subproject commit 1532c918f75cf9b03e3f902bd52298f0391f976a +Subproject commit 92bc0e62d83a957911a3b22a869208fa822a840b