We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MySQL表 ddl:
CREATE TABLE `orderdetail_01` ( `order_id` varchar(32) , `is_limittime` tinyint(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1
{ "job":{ "content":[ { "reader":{ "parameter":{ "password":"xxxxxx", "column":[ "`order_id`", "`is_limittime`" ], "connection":[ { "jdbcUrl":[ "jdbc:mysql:https://192.168.28.200:3306/order2?useUnicode=yes&useCursorFetch=true&useSSL=false&serverTimezone=Asia%2FShanghai&useCompression=true&characterEncoding=utf8" ], "table":[ "`orderdetail_01`", "`orderdetail_02`" ] } ], "dataxName":"mysql_mongo", "username":"root" }, "name":"mysqlreader" }, "writer":{ "parameter":{ "userPassword":"xxxxxx", "address":[ "192.168.28.201:27017" ], "dbName":"tis", "column":[ { "name":"order_id", "type":"string" }, { "name":"is_limittime", "type":"boolean" // 此处映射成boolean类型 } ], "writeMode":{ "isReplace":true, "replaceKey":"order_id" }, "userName":"admin", "collectionName":"orderdetail", "dataxName":"mysql_mongo" }, "name":"mongodbwriter" }, "dataxName":"mysql_mongo" } ], "setting":{ "errorLimit":{ "record":1, "percentage":0.02 }, "speed":{ "channel":3 } } } }
在执行过程中通过DataX读取的内容为:
{ "byteSize": 1, "index": 42, "rawData": 0, "type": "LONG" // 从MySQL读取的内容变成Long }
随之报告的错误为: "message": "record's [42] column's type should be: boolean"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
MySQL表 ddl:
在执行过程中通过DataX读取的内容为:
随之报告的错误为:
"message": "record's [42] column's type should be: boolean"
The text was updated successfully, but these errors were encountered: