【发布时间】:2023-03-28 23:43:01
【问题描述】:
根据 jdbc 进口商:
建议使用 UTC 时间戳进行同步。此示例使用毫秒分辨率列 mytimestamp 获取自上次运行以来添加的所有产品行:
{
"type" : "jdbc",
"jdbc" : {
"url" : "jdbc:mysql://localhost:3306/test",
"user" : "",
"password" : "",
"sql" : [
{
"statement" : "select * from \"products\" where \"mytimestamp\" > ?",
"parameter" : [ "$metrics.lastexecutionstart" ]
}
],
"index" : "my_jdbc_index",
"type" : "my_jdbc_type"
}
}
我想根据格式为 2015-08-20 14:52:09 的列修改数据增量输入数据,我也使用每分钟运行的调度程序。我尝试将 sql 键的值设为
"statement" : "select * from \"products\" where \"modifiedDate\" > ?",
但是数据没有加载。
我错过了什么吗?
【问题讨论】:
标签: elasticsearch elasticsearch-plugin elasticsearch-jdbc-river