Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This patch fixes an issue where our decimal parsing was locale-sensitive, causing the old code to return wrong answers when run in locales that use commas as decimal marks. Redshift will always use a dot (".") as the decimal point, so we can fix this bug by explicitly specifying a US locale when creating our DecimalFormat.

Fixes #243.

@codecov-io
Copy link

Current coverage is 89.09% (diff: 100%)

Merging #249 into master will increase coverage by 0.01%

@@             master       #249   diff @@
==========================================
  Files            12         12          
  Lines           641        642     +1   
  Methods         562        561     -1   
  Messages          0          0          
  Branches         79         81     +2   
==========================================
+ Hits            571        572     +1   
  Misses           70         70          
  Partials          0          0          

Powered by Codecov. Last update f7bb9c3...f564bbe

@JoshRosen JoshRosen closed this in 30b10e7 Aug 2, 2016
@JoshRosen JoshRosen deleted the decimal-fix branch August 2, 2016 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect decimal conversion loading table to DF

3 participants