Do not guess type = any
, potentially provide opt-in
#168
Labels
complexity:low
Likely not complex to implement
datapackage:v2
function:read_resource
Function read_resource()
CHANGELOG: https://datapackage.org/overview/changelog/#any-field-type-updated
In case of CSV files, values should therefore be interpreted as a string.
read_resource()
however, currently mimicsreadr::read_delim()
default behaviour of guessing the data type of a column when it is undefined (i.e. notype
property is provided).read_delim()
allows to turn of that behaviour (by specifyingcol_types
).Reverting to strings for
any
(= and thus also not provided types) may have a big impact to users,so maybe, and should only be done for v2 (see #226).read_resource()
should provide acol_guess
argument with defaultFALSE
.The text was updated successfully, but these errors were encountered: