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

[R] Support creating ListArray from R list

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • R

    Description

      DF = data.frame(a = 1:10)
      DF$b = as.list(DF$a)
      arrow::write_parquet(DF, 'test.parquet')
      # Error in Table__from_dots(dots, schema) : cannot infer type from data
      

      This appears to be supported naturally already in Python:

      import pandas as pd
      pd.DataFrame({'a': [1, 2, 3], 'b': [[1, 2], [3, 4], [5, 6]]}).to_parquet('test.parquet')
      

      Attachments

        Issue Links

          Activity

            People

              fsaintjacques Francois Saint-Jacques
              michaelchirico Michael Chirico
              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 - 8h 10m
                  8h 10m