aparajita89 opened a new issue #13765: URL: https://github.com/apache/pulsar/issues/13765
**Describe the bug** when schema is created via `pulsar-admin schema upload ...` command, it creates the schema with version and schema info (JSON serialized version of SchemaAndMetadata). but when the schema is created via `pulsar-admin schemas extract ...` command, it created the schema with schema info only (JSON serialized version of SchemaInfo). **To Reproduce** Steps to reproduce the behavior: 1. Create a schema using upload command: `pulsar-admin schema upload SampleModel_v0.json` 2. Create another schema version using extract command: `pulsar-admin schemas extract persistent://public/default/test-topic-7 -c com.flipkart.pulsarsample2.SampleModel -t json -j pulsarsample2-1.0-SNAPSHOT-jar-with-dependencies.jar` 3. Get the schemas created using get command: `pulsar-admin schemas get persistent://public/default/test-topic-7 --version 0` and `pulsar-admin schemas get persistent://public/default/test-topic-7 --version 1` 4. Compare the output of both commands to see the difference in data structure **Expected behavior** schema extract command should call the SchemaRegistryService to maintain consistent behavior -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
