rulle-io commented on PR #2121:
URL: https://github.com/apache/avro/pull/2121#issuecomment-1694338796

   Tested manully:
   
   ### --schema-file
   ```
   avro-tools fromjson --schema-file example.avro example.json
   ...
   23/08/26 14:46:15 INFO tool.DataFileReadTool: Reading schema from file 
'example.avro'
   ```
   
   ### --schema
   ```
   avro-tools fromjson --schema 
{"namespace":"example.avro","type":"record","name":"User","fields":[{"name":"name","type":"string"},{"name":"favorite_number","type":"int"},{"name":"favorite_color","type":"string"}]}
 example.avro
   ...
   23/08/26 15:04:33 INFO tool.DataFileReadTool: Reading schema from string 
'{namespace:example.avro,type:record,name:User,fields:[{name:name,type:string},{name:favorite_number,type:int},{name:favorite_color,type:string}]}'
   ```
   


-- 
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: issues-unsubscr...@avro.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to