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

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.13.0
    • Fix Version/s: 1.0.0
    • Component/s: C++, Python
    • Environment:
      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

            • Assignee:
              Unassigned
              Reporter:
              klichukb Bogdan Klichuk
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: