-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
space character in field is ignored #162
Comments
Hello, @makkaba In my environment, embulk-input-mysql keep space as is. Could you tell me the reproduce steps and sample data?
create table space_test (id int not null, name varchar(255));
insert into space_test values(1,'apple '), (2,'peach '), (3,'banana '); in:
type: mysql
user: user
password: xxx
database: embulk_test
query: select name,id from space_test
host: localhost
out:
type: stdout
|
Hello, @makkaba It seems that your issue is embulk-output-mysql specific.
mysql-connector-java-5.1.47.jar doesn't work too. (duplicate error) create table space_test (id int not null, name varchar(255));
insert into space_test values(1,'apple '), (2,'apple'); in:
type: mysql
user: user
password: xxx
database: embulk_test
query: select name,id from space_test
host: localhost
out:
type: mysql
user: user
password: xxx
#driver_path: /tmp/mysql-connector-java-8.0.16.jar
database: embulk_test
table: space_test2
host: localhost
mode: merge
create_table_constraint: "primary key (id), UNIQUE KEY `unique_index` (`name`)"
column_options:
name:
type: varchar(255)
|
Created embulk/embulk-output-jdbc#256 |
Hello, @makkaba Could you check this thread? |
metaName column is already unique key in source db.
but error is caused by unique key
error message is
i think the reason is...
The text was updated successfully, but these errors were encountered: