WeiYe-Jing / datax-web

DataX集成可视化页面,选择数据源即可一键生成数据同步任务,支持RDBMS、Hive、HBase、ClickHouse、MongoDB等数据源,批量创建RDBMS数据同步任务,集成开源调度系统,支持分布式、增量同步数据、实时查看运行日志、监控执行器资源、KILL运行进程、数据源信息加密等。
https://segmentfault.com/u/weiye_jing/articles
MIT License
5.65k stars 2.17k forks source link

% problem in incremental update #517

Open bibichuan opened 2 years ago

bibichuan commented 2 years ago

For better global communication, please give priority to using English description, thx!

Describe the question In the generated sql, there is a %, which causes the sql server to not recognize it. How to solve this?

Which version of DataX Web: -[2.1.1]

Additional context image

执行的SQL为: select * from realtime where RecordTime >= '2010-01-01%00:00:00' and RecordTime < '2022-01-10%18:21:28' 具体错误信息为:com.microsoft.sqlserver.jdbc.SQLServerException: 从字符串转换日期和/或时间时,转换失败。 2022-01-10 18:21:40 [AnalysisStatistics.analysisStatisticsLog-53] at com.alibaba.datax.common.exception.DataXException.asDataXException(DataXException.java:26) ~[datax-common-0.0.1-SNAPSHOT.jar:na]

**Requirement or improvement

bibichuan commented 2 years ago
图片