eitsupi commented on issue #13803:
URL: https://github.com/apache/arrow/issues/13803#issuecomment-1207974676

   Thanks for your reply.
   My intended use is to recreate the schema from json and to do a simple 
validation of the table by checking the json.
   
   I believe python currently allows we to create a schema from a json file. 
Like that:
   
   ```json
   {
       "col1": "int32"
   }
   ```
   
   ```python
   >>> import pyarrow as pa
   >>> import json
   >>> with open("test.json") as f:
   ...     d = json.load(f)
   ... 
   >>> pa.schema(d)
   col1: int32
   ```
   
   > On the R side, there is this nice code generating utility that Romain 
added recently:
   
   I did not know this method existed because it was not mentioned in the R 
documentation.
   I think this is pretty close to what I want.


-- 
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]

Reply via email to