[MCOL-720] can't import a file to exist table by cpimport Created: 2017-05-18 Updated: 2017-05-18 Resolved: 2017-05-18 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | cpimport |
| Affects Version/s: | 1.0.9 |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Minor |
| Reporter: | y-taka | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Single Server (CentOS 7.3) |
||
| Attachments: |
|
| Description |
|
I setup MariaDB ColumnStore environment as "Single Server". I get dump file from below site, and try to import it by cpimport. https://dumps.wikimedia.org/other/pagecounts-raw/2016/2016-05/ pm1# gunzip -r pagecounts-2016050* pm1# mcsmysql pm1# cpimport wiki_test page_counts ./pagecounts-20160501-000000 -s "\s" Unable to set default JobID; Error getting OID for table wiki_test.page_counts: IDB-2006: 'wiki_test.page_counts' does not exist in Columnstore. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2017-05-18 ] | ||
|
Hi, cpimport is for ColumnStore tables only, by default if you do not specify and engine MariaDB will create an InnoDB table. You need to do the following when creating the table:
Please note that the TEXT data type isn't supported in ColumnStore version 1.0. This is coming in 1.1. I should also note that "\s" will not work as a column delimiter in cpimport. I believe those files just use a space delimited so you would need to do:
| ||
| Comment by y-taka [ 2017-05-18 ] | ||
|
Thanks, As you said, I have to specify "engine=columnstore". > I should also note that "\s" will not work as a column delimiter in cpimport. In fact, "\s" don't work well, but " " is also bad as below. cpimport wiki_test page_counts ./pagecounts-20160501-000000 -s " " As a result, my problem is not a bug, I'm sorry. | ||
| Comment by Andrew Hutchings (Inactive) [ 2017-05-18 ] | ||
|
No problem, I glad you got it to work. |