Skip to content

Commit

Permalink
chore: fix typo: MongoProjection (#12554)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyufjh authored Sep 27, 2023
1 parent aad4119 commit 2c332fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/connector/src/parser/debezium/mongo_json_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use risingwave_common::types::DataType;
use simd_json::{BorrowedValue, Mutable};

use crate::only_parse_payload;
use crate::parser::unified::debezium::{DebeziumChangeEvent, MongoProjeciton};
use crate::parser::unified::debezium::{DebeziumChangeEvent, MongoProjection};
use crate::parser::unified::json::{JsonAccess, JsonParseOptions};
use crate::parser::unified::util::apply_row_operation_on_stream_chunk_writer;
use crate::parser::{ByteStreamSourceParser, SourceStreamChunkRowWriter};
Expand Down Expand Up @@ -97,7 +97,7 @@ impl DebeziumMongoJsonParser {

let accessor = JsonAccess::new_with_options(payload, &JsonParseOptions::DEBEZIUM);

let row_op = DebeziumChangeEvent::with_value(MongoProjeciton::new(accessor));
let row_op = DebeziumChangeEvent::with_value(MongoProjection::new(accessor));

apply_row_operation_on_stream_chunk_writer(row_op, &mut writer)
}
Expand Down
6 changes: 3 additions & 3 deletions src/connector/src/parser/unified/debezium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ where
}
}

pub struct MongoProjeciton<A> {
pub struct MongoProjection<A> {
accessor: A,
}

Expand Down Expand Up @@ -183,13 +183,13 @@ pub fn extract_bson_id(id_type: &DataType, bson_doc: &serde_json::Value) -> anyh
};
Ok(id)
}
impl<A> MongoProjeciton<A> {
impl<A> MongoProjection<A> {
pub fn new(accessor: A) -> Self {
Self { accessor }
}
}

impl<A> Access for MongoProjeciton<A>
impl<A> Access for MongoProjection<A>
where
A: Access,
{
Expand Down

0 comments on commit 2c332fc

Please sign in to comment.