[MDEV-6167] Store all of LOAD DATA INFILE's warnings Created: 2014-04-24 Updated: 2014-04-28 Resolved: 2014-04-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Ralf Neubauer | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
When we do bulk imports, we need the full list of warnings to:
The data is from external sources and often has quality problems, but we want to load it into the database as far as possible with sane types, we don't want to impose strict format checks. But we want to know what got lost. And we need the speed of LOAD DATA INFILE. Of course we could try to mimic MariaDB's type and range checks etc., but that is too error prone, the target is too big and moving, so we can only do some basic checks. show warnings or get diagnostic can only show up to 65535 warnings, and because there can be many warnings per row, we don't know in advance, if we can load the whole file at once or just blocks of 100 lines or so (which is much slower). So I implemented an algorithm:- Why can't LOAD DATA INFILE just log the warnings into a table with a predefined structure or stop loading the file an return the file position when max_error_count warnings occured? |
| Comments |
| Comment by Ralf Neubauer [ 2014-04-24 ] |
|
Sorry, this is a duplicate of MDEV-6166, because the 'The issue was created' was hidden behind the (unmovable) create issue dialog box and i clicked [Create] again to be sure. |