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

[C++] CSV reader: Ability to not infer column types.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.13.0
    • None
    • C++, Python
    • Ubuntu Xenial

    Description

      I'm trying to read CSV as is. All columns as strings. I don't know the schema of these CSVs and they will vary as they are provided by user.

      Right now i'm using pandas.read_csv(dtype=str) which works great, but since final destination of these CSVs are parquet files it seems like much more efficient to use pyarrow.csv.read_csv in future, as soon as this becomes available

      I tried things like `pyarrow.csv.read_csv(convert_types=ConvertOptions(columns_types=defaultdict(lambda: 'string')))` but it doesn't work.

      Maybe I just didnt' find something that already exists?

      Attachments

        Activity

          People

            Unassigned Unassigned
            klichukb Bogdan Klichuk
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: