Skip to content

Commit 8849a48

Browse files
committed
saving changes before context switch
1 parent f4b82a4 commit 8849a48

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/ast/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1827,6 +1827,7 @@ pub enum PeerType {
18271827
Snowflake,
18281828
Postgres,
18291829
Kafka,
1830+
CloudStorage
18301831
}
18311832

18321833
impl fmt::Display for PeerType {
@@ -1837,6 +1838,7 @@ impl fmt::Display for PeerType {
18371838
PeerType::Snowflake => write!(f, "SNOWFLAKE"),
18381839
PeerType::Postgres => write!(f, "POSTGRES"),
18391840
PeerType::Kafka => write!(f, "KAFKA"),
1841+
PeerType::CloudStorage => write!(f, "CLOUDSTORAGE"),
18401842
}
18411843
}
18421844
}

src/keywords.rs

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ define_keywords!(
140140
CLOB,
141141
CLONE,
142142
CLOSE,
143+
CLOUDSTORAGE,
143144
CLUSTER,
144145
COALESCE,
145146
COLLATE,

src/parser.rs

+2
Original file line numberDiff line numberDiff line change
@@ -7061,12 +7061,14 @@ impl<'a> Parser<'a> {
70617061
Keyword::SNOWFLAKE,
70627062
Keyword::POSTGRES,
70637063
Keyword::KAFKA,
7064+
Keyword::CLOUDSTORAGE
70647065
]) {
70657066
Some(Keyword::BIGQUERY) => Ok(PeerType::Bigquery),
70667067
Some(Keyword::MONGO) => Ok(PeerType::Mongo),
70677068
Some(Keyword::SNOWFLAKE) => Ok(PeerType::Snowflake),
70687069
Some(Keyword::POSTGRES) => Ok(PeerType::Postgres),
70697070
Some(Keyword::KAFKA) => Ok(PeerType::Kafka),
7071+
Some(Keyword::CLOUDSTORAGE) => Ok(PeerType::CloudStorage),
70707072
other => {
70717073
let err = format!(
70727074
"expected peertype of POSTGRES,SNOWFLAKE,BIGQUERY,MONGO or KAFKA, got {:#?}",

0 commit comments

Comments
 (0)