docs: schema validation testing scripts#61
Merged
Conversation
Signed-off-by: Cece Ma <mayuqing131@gmail.com>
Signed-off-by: Cece Ma <mayuqing131@gmail.com>
KeranYang
reviewed
Feb 25, 2026
|
|
||
| if [[ $# -lt 1 ]]; then | ||
| echo "Usage: $(basename "$0") <encoder-script> [topic] [num-messages]" >&2 | ||
| echo " encoder-script Script that writes one message to stdout (e.g. avro_encode_full.py)." >&2 |
Contributor
There was a problem hiding this comment.
Is it possible to ask bash to execute python code so that we don't need to pass a script to it?
| # No arguments; message body is hardcoded. Use to send valid Avro that doesn't match full schema. | ||
| # Output: Avro binary to stdout. Prefers 'avro' library; falls back to hand-rolled encoding. | ||
|
|
||
| import io |
Contributor
There was a problem hiding this comment.
avro encode name only and avro encode full are specific. Can we have one generic script that works for any schema? we can take a schema file path as input parameter.
Signed-off-by: Cece Ma <mayuqing131@gmail.com>
KeranYang
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
uploaded scripts used to test schema validation