File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ define_keywords!(
236
236
DUPLICATE ,
237
237
DYNAMIC ,
238
238
EACH ,
239
+ ELASTICSEARCH ,
239
240
ELEMENT ,
240
241
ELEMENTS ,
241
242
ELSE ,
@@ -510,6 +511,7 @@ define_keywords!(
510
511
PRIVILEGES ,
511
512
PROCEDURE ,
512
513
PROGRAM ,
514
+ PUBSUB ,
513
515
PURGE ,
514
516
QUALIFY ,
515
517
QUARTER ,
Original file line number Diff line number Diff line change @@ -8397,6 +8397,8 @@ impl<'a> Parser<'a> {
8397
8397
Keyword :: S3 ,
8398
8398
Keyword :: SQLSERVER ,
8399
8399
Keyword :: EVENTHUBS ,
8400
+ Keyword :: PUBSUB ,
8401
+ Keyword :: ELASTICSEARCH ,
8400
8402
] ) {
8401
8403
Some ( Keyword :: BIGQUERY ) => Ok ( PeerType :: Bigquery ) ,
8402
8404
Some ( Keyword :: MONGO ) => Ok ( PeerType :: Mongo ) ,
@@ -8406,6 +8408,8 @@ impl<'a> Parser<'a> {
8406
8408
Some ( Keyword :: S3 ) => Ok ( PeerType :: S3 ) ,
8407
8409
Some ( Keyword :: SQLSERVER ) => Ok ( PeerType :: SQLServer ) ,
8408
8410
Some ( Keyword :: EVENTHUBS ) => Ok ( PeerType :: Eventhubs ) ,
8411
+ Some ( Keyword :: PUBSUB ) => Ok ( PeerType :: PubSub ) ,
8412
+ Some ( Keyword :: ELASTICSEARCH ) => Ok ( PeerType :: Elasticsearch ) ,
8409
8413
other => {
8410
8414
let supported_peer_types = [
8411
8415
"BIGQUERY" ,
@@ -8416,6 +8420,8 @@ impl<'a> Parser<'a> {
8416
8420
"S3" ,
8417
8421
"SQLSERVER" ,
8418
8422
"EVENTHUBS" ,
8423
+ "PUBSUB" ,
8424
+ "ELASTICSEARCH" ,
8419
8425
] ;
8420
8426
let err = format ! (
8421
8427
"expected peertype as one of {}, got {:#?}" ,
You can’t perform that action at this time.
0 commit comments