-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
type/bugThe PR fixed a bug or issue reported a bugThe PR fixed a bug or issue reported a bug
Description
Describe the bug
Changing just the type of schema does not work
To Reproduce
Steps to reproduce the behavior:
- create a file
/tmp/yoshicontaining:
{
"type": "JSON",
"schema": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.foo\",\"fields\":[{\"name\":\"file1\",\"type\":[\"null\",\"string\"],\"default\":null},{\"name\":\"file2\",\"type\":\"string\",\"default\":null},{\"name\":\"file3\",\"type\":[\"null\",\"string\"],\"default\":\"dfdf\"}]}",
"properties": {}
}
- now type
pulsar-admin schemas upload -f /tmp/yoshi persistent://public/default/yoshito upload the schema - now type
pulsar-admin schemas get persistent://public/default/yoshi
the result will say:
...
"type": "JSON",
...
which is ok
4. edit /tmp/yoshi and change
...
"type": "AVRO",
...
- now type
pulsar-admin schemas upload -f /tmp/yoshi persistent://public/default/yoshito upload the schema - now type
pulsar-admin schemas get persistent://public/default/yoshi
the result will say:
...
"type": "JSON",
...
it should say instead 'AVRO'
Desktop (please complete the following information):
- macos, pulsar-all docker image 2.4.0 standalone
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/bugThe PR fixed a bug or issue reported a bugThe PR fixed a bug or issue reported a bug