CSV mapping ignored and entered in CSV header order
See original GitHub issueSystem information:
- Ubuntu 18.04.3 LTS
- DBeaver 6.3.3.202001191557
Connection specification:
- Local MySQL database
- com.mysql.jdbc.Driver
Describe the problem you’re observing:
Mappings for CSV import does not work. The CSV order overrides the mapping. In my case the columns in the CSV are: id, cid, ip_from, ip_to
and the DB columns are id, ip_from, ip_to, cid
. The mapping wont go in the correct order.
Steps to reproduce, if exist:
Import a CSV with different order than that of the table?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Jackson CSV deserialization ignoring header order
I tried editing the csv(tsv) file's headers changing the name to something not annotated, but no error occurs. @JsonCreator(mode = JsonCreator. ...
Read more >Solutions to common product CSV import problems
Troubleshooting product CSV files. Identify missing fields or headers, illegal formatting or identifier duplications before contacting support.
Read more >Import-Csv (Microsoft.PowerShell.Utility)
If any row has more values than the header row, the additional values are ignored. If the column header row is missing a...
Read more >CSV file format and examples - IBM
Important: If a cell that contains content for a column does not match the specified artifact type, as denoted by the Type value,...
Read more >Mapping timescale during import and ignoring some columns
... know how do I ignore several columns from the source CSV file while importing ... When I map the Time to Column...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This bug was caused by commit 14c5f1d6681650125c50f5ddbc52970a78d5bfc7 Fixed
I can reproduce in 6.3.4 Community. This bug does not happen in 6.3.3 EE.
System information:
Connection specification:
To repro, make a small CSV and call it “sample.csv”
Make a tiny SQLite DB (or whatever DB, it doesn’t matter) where the order of the first two columns is swapped:
sample
.visits
to be bound toID
, andid
to be bound toVisits
. You will notice that the “Preview data” pane doesn’t change in order. On 6.3.3 EE the preview pane does change. So the bad behavior is here, somewhere.sample
table:which is wrong.