Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV Parser: Infer numbers like 2. as Float64 #950

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

brianrackle
Copy link
Contributor

Which issue does this PR close?

Closes #929

Rationale for this change

Parsing 2. in a CSV as UTF8 is incorrect since 2. is commonly interpretted as a numeric value. The most straightforward solution is to follow the native item parse capabilities which can only parse 2. as Float.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Nov 13, 2021
@alamb alamb changed the title Inferring 2. as Float64 for issue #929 CSV Parser: Infer 2. as Float64 Nov 13, 2021
@alamb alamb changed the title CSV Parser: Infer 2. as Float64 CSV Parser: Infer numbers like 2. as Float64 Nov 13, 2021
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @brianrackle looks great

@alamb alamb merged commit f5a4341 into apache:master Nov 13, 2021
alamb pushed a commit that referenced this pull request Nov 22, 2021
alamb pushed a commit that referenced this pull request Nov 23, 2021
alamb added a commit that referenced this pull request Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Review / fix behavior of json schema inference for numbers with trailing decimal point (e.g. 2.)
3 participants