Skip to content

Commit

Permalink
fix(source): Protobuf Any as canonical JSON (#18380)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangjinwu authored Sep 5, 2024
1 parent 670a94f commit 3b98b71
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 259 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/connector/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pg_bigdecimal = { git = "https://github.com/risingwavelabs/rust-pg_bigdecimal",
postgres-openssl = "0.5.0"
prometheus = { version = "0.13", features = ["process"] }
prost = { workspace = true, features = ["no-recursion-limit"] }
prost-reflect = "0.14"
prost-reflect = { version = "0.14", features = ["serde"] }
prost-types = "0.13"
protobuf-native = "0.2.2"
pulsar = { version = "6.3", default-features = false, features = [
Expand Down
3 changes: 3 additions & 0 deletions src/connector/codec/src/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ pub enum AccessError {
#[error("Unsupported additional column `{name}`")]
UnsupportedAdditionalColumn { name: String },

#[error("Fail to convert protobuf Any into jsonb: {0}")]
ProtobufAnyToJson(#[source] serde_json::Error),

/// Errors that are not categorized into variants above.
#[error("{message}")]
Uncategorized { message: String },
Expand Down
Loading

0 comments on commit 3b98b71

Please sign in to comment.