Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed May 6, 2024
1 parent 9ea67ca commit f11c4fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9828,7 +9828,7 @@ impl<'a> Parser<'a> {
Keyword::EVENTHUBS,
Keyword::PUBSUB,
Keyword::ELASTICSEARCH,
Keyword::CLICKHOUSE
Keyword::CLICKHOUSE,
]) {
Some(Keyword::BIGQUERY) => Ok(PeerType::Bigquery),
Some(Keyword::MONGO) => Ok(PeerType::Mongo),
Expand All @@ -9855,7 +9855,7 @@ impl<'a> Parser<'a> {
"EVENTHUBS",
"PUBSUB",
"ELASTICSEARCH",
"CLICKHOUSE"
"CLICKHOUSE",
];
let err = format!(
"expected peertype as one of {}, got {:#?}",
Expand Down
14 changes: 6 additions & 8 deletions tests/sqlparser_postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3693,14 +3693,12 @@ fn parse_create_clickhouse_peer() {
assert_eq!(peer_type, PeerType::Clickhouse);
assert_eq!(
with_options,
vec![
SqlOption {
name: Ident::new("host"),
value: Expr::Value(Value::SingleQuotedString(String::from(
"http://clickhouse-server:8123"
)))
},
]
vec![SqlOption {
name: Ident::new("host"),
value: Expr::Value(Value::SingleQuotedString(String::from(
"http://clickhouse-server:8123"
)))
},]
);
}
_ => unreachable!(),
Expand Down

0 comments on commit f11c4fc

Please sign in to comment.