Closed domoritz closed 11 years ago
@scraperdragon do you fancy reviewing this one?
If we hold this to be important, the order of:
TYPES = [StringType, IntegerType, DecimalType, DateType]
becomes important.
We should probably prioritise less-lossy types over more-lossy types, so should this be:
TYPES = [StringType, DecimalType, IntegerType, DateType]
?
@scraperdragon Makes sense. See 7e4f12a.
It does not handle the case where two types get the same weight. I guess the best is to prefer the type which comes sooner in the array that provides the types for guessing.