Simon Perkins created ARROW-12617:
-------------------------------------

             Summary: pyarrow.orc.write_table signature reverses that of 
pyarrow.parquet.write_table
                 Key: ARROW-12617
                 URL: https://issues.apache.org/jira/browse/ARROW-12617
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 4.0.0
         Environment: Ubuntu 18.04
Python 3.7
            Reporter: Simon Perkins



The following signatures are inverted and for consistency it would be good for 
them to align:

{code:python}
pyarrow.parquet.write_table(table, where)
pyarrow.orc.write_table(where, table)
{code}

{code:python}
In [1]: import pyarrow.parquet as pa

In [2]: import pyarrow.orc as po

In[3]: pa.write_table?
Signature:
pa.write_table(
    table,
    where,
    row_group_size=None,
    version='1.0',
    use_dictionary=True,
    compression='snappy',
    write_statistics=True,
    use_deprecated_int96_timestamps=None,
    coerce_timestamps=None,
    allow_truncated_timestamps=False,
    data_page_size=None,
    flavor=None,
    filesystem=None,
    compression_level=None,
    use_byte_stream_split=False,
    data_page_version='1.0',
    use_compliant_nested_type=False,
    **kwargs,

In [11]: po.write_table?
Signature: po.write_table(where, table)
{code}




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

Reply via email to