From 92a4d7aa42141edecc92e016699e45848e6f9eca Mon Sep 17 00:00:00 2001 From: xxchan Date: Tue, 25 Jun 2024 14:45:54 +0800 Subject: [PATCH] update --- src/connector/codec/Cargo.toml | 4 ---- src/connector/codec/tests/integration_tests/avro.rs | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/connector/codec/Cargo.toml b/src/connector/codec/Cargo.toml index 1878a799a0a5e..5086549f4bf4c 100644 --- a/src/connector/codec/Cargo.toml +++ b/src/connector/codec/Cargo.toml @@ -44,7 +44,3 @@ workspace-hack = { path = "../../workspace-hack" } [lints] workspace = true - -[lib] -test = false -doctest = false diff --git a/src/connector/codec/tests/integration_tests/avro.rs b/src/connector/codec/tests/integration_tests/avro.rs index bad579260cd90..ce46beacdb363 100644 --- a/src/connector/codec/tests/integration_tests/avro.rs +++ b/src/connector/codec/tests/integration_tests/avro.rs @@ -44,6 +44,14 @@ struct Config { data_encoding: TestDataEncoding, } +/// Data driven testing for converting Avro Schema to RisingWave Schema, and then converting Avro data into RisingWave data. +/// +/// The expected results can be automatically updated. To run and update the tests: +/// ```bash +/// UPDATE_EXPECT=1 cargo test -p risingwave_connector_codec +/// ``` +/// Or use Rust Analyzer. Refer to . +/// /// ## Arguments /// - `avro_schema`: Avro schema in JSON format. /// - `avro_data`: list of Avro data. Refer to [`TestDataEncoding`] for the format.