[MDEV-6187] CONNECT storage engine should be more verbose Created: 2014-04-29 Updated: 2014-05-18 Resolved: 2014-05-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.10 |
| Fix Version/s: | 10.0.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Antonio Fernandes | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | connect-engine | ||
| Environment: |
CentOS 6.4 x86_64 |
||
| Description |
|
When adding a connect table from multiple files, it prints an error that it could be improved:
As soon I try to get some data, it prints an error with no clue to what relates to:
If I try do add the table with just one file, it works OK. I suspect there's some file without data in proper format.. Could you add some more verbosity in ha_connect::GetTDB as to which filename relates to? Best regards, |
| Comments |
| Comment by Olivier Bertrand [ 2014-05-09 ] | ||||||
|
This was a bug caused by the special column FILEID that was given an offset of 0 wrongly tested later. Now this test skips special columns. Offset of CSV table columns are the rank of the corresponding field in the file starting at 1. For instance if you create a CSV table on the file:
and you are willing to skip the errno column, you should create it as:
Normally, CONNECT affects offsets by default starting at 1 and therefore an offset of 0 is invalid. | ||||||
| Comment by Antonio Fernandes [ 2014-05-15 ] | ||||||
|
Hi Olivier, I've tested with 10.0.11 and the "table crash" problem is now OK. I would use this ticket to suggest also a change of behavior: when a data source has some records "scanned" (read) that don't comply with the layout, it would be better to throw a warning instead of error (or this behavior could be set by a variable):
That way, we could still get some data from some ill formated datasources. What do you think? Regards, | ||||||
| Comment by Olivier Bertrand [ 2014-05-18 ] | ||||||
|
This issue is already addressed by the MAXERR and ACCEPT create table options. | ||||||
| Comment by Antonio Fernandes [ 2014-05-18 ] | ||||||
|
Sorry Olivier Best regards, | ||||||
| Comment by Olivier Bertrand [ 2014-05-18 ] | ||||||
|
Antonio, |