Re: PyArrow.Table schema.metadata issue

2019-11-29 Thread Aaron Chu
Thanks Maarten, It works. You're really helpfull. Thanks again. Best Regards, Aaron Chu On Wed, Nov 27, 2019 at 10:18 PM Maarten Ballintijn wrote: > Hi Aaron, > > The schema is immutable, add_metadata returns a new schema object which > includes the metadata. > So I think thi

Re: PyArrow.Table schema.metadata issue

2019-11-27 Thread Aaron Chu
. This issue can be easily reproduced on python2 and 3: import pyarrow as pa schema = pa.schema([pa.field('Event_ID', pa.int64())]) meta = {} meta['test'] = 'testval' schema.add_metadata(meta) #schema.with_metadata(meta) schema.metadata Thanks for your help!! Best Regards, Aaron Chu On Wed, Nov 27