Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, @0xcaff, I'm happy to experiment with this crate. I've made some updates, hope them useful.
This PR updates the
duckdb-rs
crate to version 1.0 and introduces integration tests for the DuckDB Protobuf extension. The tests ensure that the extension can correctly parse and query protobuf data. The setup includes compiling the protobuf schema, generating test data, and querying the data using DuckDB.Changes Made
Update
duckdb
to 1.0:duckdb
crate to version 1.0 inCargo.toml
and relative dependencies.Protobuf Schema Definition:
user.proto
file defining the protobuf schema forUser
messages.Protobuf Compilation and Test Data Generation:
setup
function in the integration test to compile the protobuf schema and generate test data.setup
function ensures that the protobuf schema is compiled and the test data is generated before running the tests.Integration Tests:
Instructions for Testing
Build the DuckDB Protobuf Extension:
Run the Integration Tests:
cargo test
Verify the Results:
test_query_protobuf_data
test to verify that the queried data matches the expected results.[Expected] Example Output
The
test_query_protobuf_data
test should print the following output, indicating that the data was queried correctly:Issues to resolve
Please review the changes and provide feedback, particularly on the unexpected issue encountered🤓. Thank you! 🙏