Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-1015

Object categoricals are not serialized when only None is present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • cpp-1.1.0
    • cpp-1.3.0
    • parquet-cpp
    • None

    Description

      The following code sample fails with pyarrow.lib.ArrowNotImplementedError: NotImplemented: unhandled type but should not:

      import pandas as pd
      import pyarrow as pa
      import pyarrow.parquet as pq
      
      df = pd.DataFrame({'x': [None]})
      df['x'] = df['x'].astype('category')
      
      table = pa.Table.from_pandas(df)
      buf = pa.InMemoryOutputStream()
      
      pq.write_table(table, buf)
      

      Attachments

        Issue Links

          Activity

            People

              uwe Uwe Korn
              marco.neumann.by Marco Neumann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: