Skip to content

Add an infer mode guarantying that data sample is valid against an inferred schema #111

@anuveyatsu

Description

@anuveyatsu

By default, infer method reads only first 100 rows when generating schema. However, there is some situations when we need to increase that limit, e.g., when first 100 rows contain integers, but then there is a decimal numbers. If I set limit option when calling infer, it still returns schema that is not correct. May be I am doing something wrong:

https://runkit.com/anuveyatsu/tableschema-infer-not-working-properly

as you can see field type for "Value" is "integer", however, there are decimal numbers (eg, in row 215)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions