[ 
https://issues.apache.org/jira/browse/ARROW-9636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre updated ARROW-9636:
--------------------------
    Description: 
Hi,

When trying to use 'LZO' codec in `pyarrow.parquet.write_table()` with below 
code, I get an error message indicating that 'LZO' is not available. However, 
this codec is mentionned as available in [the 
doc|[https://arrow.apache.org/docs/python/generated/pyarrow.parquet.write_table.html]].

 

Code

```python

from pyarrow import parquet as pq

pq.write_table(data, file, compression='LZO')

```

 

Error message

```bash
 File "pyarrow/_parquet.pyx", line 1374, in 
pyarrow._parquet.ParquetWriter.write_table

File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status

OSError: Codec type LZO not supported in Parquet format

```

 

I would suggest correcting the documentation, or making this codec available?

Thanks for your support.

Bests,

 

> Error when using 'LZO' compression in write_table
> -------------------------------------------------
>
>                 Key: ARROW-9636
>                 URL: https://issues.apache.org/jira/browse/ARROW-9636
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Pierre
>            Priority: Trivial
>
> Hi,
> When trying to use 'LZO' codec in `pyarrow.parquet.write_table()` with below 
> code, I get an error message indicating that 'LZO' is not available. However, 
> this codec is mentionned as available in [the 
> doc|[https://arrow.apache.org/docs/python/generated/pyarrow.parquet.write_table.html]].
>  
> Code
> ```python
> from pyarrow import parquet as pq
> pq.write_table(data, file, compression='LZO')
> ```
>  
> Error message
> ```bash
>  File "pyarrow/_parquet.pyx", line 1374, in 
> pyarrow._parquet.ParquetWriter.write_table
> File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
> OSError: Codec type LZO not supported in Parquet format
> ```
>  
> I would suggest correcting the documentation, or making this codec available?
> Thanks for your support.
> Bests,
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to