Skip to content

CSV parser doesn't parse all columns #1850

@volkanunsal

Description

@volkanunsal

I noticed that the CSV parser doesn't parse everything. For example, here are 2 ways of parsing. The first one uses the built-in CSV parser, and the other one uses the csvjson CLI utility.

const txt = await workspace.readText(env.files[0]);
const parseCSV = CSV.parse(txt);
env.output.log(JSON.stringify(parseCSV, null, 2));

const arr = parseFileUsingCSVJson(env.files[0].filename);
env.output.log(JSON.stringify(arr, null, 2));

First one output

Image

Second one output

Image

It looks like most columns are being omitted by the native parser.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions