mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
16 lines
401 B
YAML
16 lines
401 B
YAML
dataSourceKey: defaultDS
|
|
destination: example
|
|
groupId: g1
|
|
esMapping:
|
|
_index: mytest_user
|
|
_type: _doc
|
|
_id: _id
|
|
# pk: id
|
|
sql: "select a.id as _id, a.name as _name, a.role_id as _role_id, b.role_name as _role_name,
|
|
a.c_time as _c_time from user a
|
|
left join role b on b.id=a.role_id"
|
|
# objFields:
|
|
# _labels: array:;
|
|
etlCondition: "where a.c_time>='{0}'"
|
|
commitBatch: 3000
|