Open yuta17 opened 5 years ago
@yuta17
At the first time, embulk-output-jdbc would create new table because the target table didn't exist.
And because input type for is_sample
might be boolean
, embulk-output-jdbc created the columns as BOOLEAN
.
At the second time, embulk-output-jdbc would create intermediate tables based on the schema of the table created above.
Because MySQL JDBC driver returns BIT
as column type and 0 as column size for TINYINT(1)
, embulk-output-jdbc would try to create a column as BIT(0)
.
(Maybe because JDBC BIT
type represents boolean
, although MySQL BIT
type is numeric.)
It is not difficult to support MySQL TINYINT(1) (BOOLEAN) type. I'll implement before long.
one more workaround is tinyInt1isBit
JDBC option.
out:
...
options: { tinyInt1isBit: false }
For the column type
tinyint(1)
, the first execution changes toboolean
, and the second execution changes tobit(0)
.first time:
No errors.
second time:
config:
I would like to fix it like the example below.
Is this a bug?