Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Implement generic csv import #19

Closed
aboodman opened this issue Jul 9, 2015 · 2 comments
Closed

Implement generic csv import #19

aboodman opened this issue Jul 9, 2015 · 2 comments

Comments

@aboodman
Copy link
Contributor

aboodman commented Jul 9, 2015

A lot of data in the world is csv or tsv. It would be good to have generic support for this.

An interesting question is how to represent csv in noms types. Assuming the column names are known, the first thing that comes to mind is a list of maps. But that would have a problem: it wouldn't enforce that all the maps are the same shape, so it's hard to do things like graphs.

What we really want is List<T> where T is a struct with fields corresponding to to the columns of the csv.

We can easily create a StructDef dynamically using the column names as the fields. But it is not easy with the current generated Go code to dynamically create instances of such a struct. Perhaps there should be.

@aboodman aboodman modified the milestones: laer, later Jul 9, 2015
@aboodman
Copy link
Contributor Author

aboodman commented Jul 9, 2015

See also issues #20 and #21

@cmasone-attic
Copy link
Contributor

Closed as dup of #29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants