Giter Site home page Giter Site logo

Comments (3)

long2ice avatar long2ice commented on May 19, 2024
tables:
 - table1
 - table2

from synch.

guiqiang179 avatar guiqiang179 commented on May 19, 2024
  • table: order_goods
  • table: invoice_order

[root@localhost ~]# synch --alias mysql_db etl --schema clickhouse --renew
2021-08-17 10:28:20 - synch.reader:29 - DEBUG - select COLUMN_NAME from information_schema.COLUMNS where TABLE_SCHEMA='clickhouse' and TABLE_NAME='order_goods' and COLUMN_KEY='PRI'
2021-08-17 10:28:20 - synch.reader:29 - DEBUG - select COLUMN_NAME from information_schema.COLUMNS where TABLE_SCHEMA='clickhouse' and TABLE_NAME='invoice_order' and COLUMN_KEY='PRI'
2021-08-17 10:28:20 - synch.replication.clickhouse:33 - DEBUG - drop table clickhouse.invoice_order
2021-08-17 10:28:20 - synch.replication.etl:92 - INFO - drop table success:clickhouse.invoice_order
2021-08-17 10:28:20 - synch.replication.clickhouse:33 - DEBUG - select count(*)from system.tables where database = 'clickhouse' and name = 'invoice_order'
2021-08-17 10:28:20 - synch.replication.clickhouse:33 - DEBUG - CREATE TABLE clickhouse.invoice_order ENGINE = MergeTree ORDER BY id AS SELECT * FROM mysql('172.16.0.40:3306', 'clickhouse', 'invoice_order', 'ch_repl', 'ch_repl') limit 0
2021-08-17 10:28:20 - synch.replication.clickhouse:44 - DEBUG - select COLUMN_NAME, COLUMN_TYPE,IS_NULLABLE from information_schema.COLUMNS where TABLE_NAME = 'invoice_order' and COLUMN_TYPE like '%decimal%'and TABLE_SCHEMA = 'clickhouse'
2021-08-17 10:28:20 - synch.replication.clickhouse:33 - DEBUG - alter table clickhouse.invoice_order modify column money_paid Nullable(Decimal(10,2))
2021-08-17 10:28:20 - synch.replication.clickhouse:33 - DEBUG - alter table clickhouse.invoice_order modify column refund_money Nullable(Decimal(10,2))
2021-08-17 10:28:20 - synch.replication.clickhouse:33 - DEBUG - insert into clickhouse.invoice_order SELECT * FROM mysql('172.16.0.40:3306', 'clickhouse', 'invoice_order', 'ch_repl', 'ch_repl')
2021-08-17 10:29:15 - synch.replication.etl:114 - INFO - full data etl for clickhouse.invoice_order success
[root@localhost ~]#
配置文件如上写,但是直接运行 只同步了一张表,前面的那一张表 没有同步完成

from synch.

guiqiang179 avatar guiqiang179 commented on May 19, 2024

用了最新版本之后 问题解决了,thanks 作者。

from synch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.