question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSV double import bug

See original GitHub issue

Describe the bug When importing a csv, values of type double are subject to add trailing digits. So value 1.234 in the csv might end up being stored as 1.2340000000004 for example.

Expected behavior Values should be imported normally without trailing digits being added.

Environment (please complete the following information):

  • AWS linux
  • Version: 4.2

Screenshots Screenshot 2020-05-18 at 11 25 19

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
Cobalt-27commented, Apr 16, 2022

@Cobalt-27 If you are not afraid of math then this (PDF) paper looks like a decent start. It’s not simple at all, but it could be fun to code it from scratch.

I looked at Apache Harmony and they use a native parser. Kotlin folks borrowed the same code from Harmony.

Thank you for your advice, I would give it a try.

2reactions
jerrinotcommented, Apr 16, 2022

@Cobalt-27 If you are not afraid of math then this (PDF) paper looks like a decent start. It’s not simple at all, but it could be fun to code it from scratch.

I looked at Apache Harmony and they use a native parser. Kotlin folks borrowed the same code from Harmony.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Common CSV Import Errors and How to Fix Them - Flatfile
One of the most common CSV import errors is that the file is simply too large. That can be caused by too many...
Read more >
55049 – FILEOPEN: CSV import - \" is not seen as an escaped ...
We found this bug when trying to load a CSV-export of a database ... In most other spreadsheets double quotes in .csv files...
Read more >
CSV Import fails catastrophically when double quotes ... - Jira
CSV Import fails catastrophically when double quotes are used to encase field values which also contain double quotes. Closed: Assignee: Priority: Resolution:.
Read more >
Import error when test step has hard enters “Double-quote not ...
I have test cases with hard enters in test steps. I can export the test cases fine, but when I update in the...
Read more >
How do I retain double-quotes when import a csv file
Only reason going this route is somewhere in my data is an error, but I cannot find, and I use to locate it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found