tableschema-java icon indicating copy to clipboard operation
tableschema-java copied to clipboard

Fixed "number" type returned on empty columns data while using the inferType feature

Open Lostanee opened this issue 3 years ago • 0 comments

Fixed "number" type returned on empty columns data while using the inferType feature

Hi, we notice a weird behavoir of tableschema while using the inferType feature with some specific data in input. In particular, we want to use the inferType to obtain a prediction of the datatypes of a csv passed as input. However, when this csv have a completly empty column (no data), the inferType function always assign to that column the type "number". This behavoir is the same even if the empty column is escaped with the double quote char (""). We just want that in the case of empty column, the predicted type is "string". Can this be fixed?

I will attach you some example of csv that have this behavoir.

Thanks in advance for your support!


Please preserve this line to notify @iSnow (lead of this repository) AW_229_000001_000002.csv AW_229_000001_000002_1Row.csv

Lostanee avatar Jul 08 '22 14:07 Lostanee