Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-12617

[Python] pyarrow.orc.write_table signature reverses that of pyarrow.parquet.write_table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.0
    • 4.0.1, 5.0.0
    • Python
    • Ubuntu 18.04
      Python 3.7

    Description

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

      pyarrow.parquet.write_table(table, where)
      pyarrow.orc.write_table(where, table)
      
      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)
      

      Attachments

        Issue Links

          Activity

            People

              jorisvandenbossche Joris Van den Bossche
              sjperkins Simon Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h