-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
增量同步(根据时间戳进行同步),变量替换{${lastTime}) ,(${currentTime})时,sql执行出现问题。 #198
Comments
配置可以截个图看看 |
|
问题得到了解决,最后增量时间字段为:-DlastTime='%s' -DcurrentTime='%s',需要记得加冒号,下面的sql语句为 |
oracle转mysql,oracle日期字段类型为date,mysql为datetime类型,增量迁移 报类型转换错误 2020-09-06 12:43:36.665 [0-0-0-reader] INFO CommonRdbmsReader$Task - Finished read record by Sql: [select * from agent."TB_TESTX" where updated_at >= '1599365051' / (60 * 60 * 24) + TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH:MI:SS') and updated_at < '1599367409' / (60 * 60 * 24) + TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH:MI:SS') |
hbase的增量任务‘增量时间段’这里需要怎么配置 |
com.wugui.datax.rpc.util.XxlRpcException: xxl-rpc response status invalid. |
具体问题描述为,[读取数据库数据失败. 请检查您的配置的 column/table/where/querySql或者向 DBA 寻求帮助.]. - 执行的SQL为: select * from emp where FROM_UNIXTIME(operationDate) >= FROM_UNIXTIME(${lastTime}) and operationDate < FROM_UNIXTIME(${currentTime}) 具体错误信息为:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{lastTime}) and operationDate < FROM_UNIXTIME(${currentTime})' ,
增量时间字段为:-D${lastTime}=%s -D${currentTime}=%s
json字段为:
"querySql": [
"select * from emp where FROM_UNIXTIME(operationDate) >= FROM_UNIXTIME(${lastTime}) and operationDate < FROM_UNIXTIME(${currentTime})"
]
The text was updated successfully, but these errors were encountered: