Wittline / csv-schema-inference

A tool to automatically infer columns data types in .csv files
https://wittline.github.io/csv-schema-inference/
MIT License
33 stars 4 forks source link

No inference support for unique identifiers #25

Closed Pansynchro-Admin closed 2 years ago

Pansynchro-Admin commented 2 years ago

This is a pretty well-done project, but it could be improved by adding an inference rule for unique identifiers (GUID/UUID).

Wittline commented 2 years ago

This is a pretty well-done project, but it could be improved by adding an inference rule for unique identifiers (GUID/UUID).

Checking in some "infer data types" projects they are not doing anything for GUID or UUID I think they are inferring those types as STRING directly.

Any thought or could you please help me with some ideas??

Pansynchro-Admin commented 2 years ago

If other projects aren't able to do this, this would give yours a competitive advantage if it can. 😄

Any thought or could you please help me with some ideas??

The obvious solution is, when you see a string, attempt to parse it as a GUID and see if it's valid.