Coder Social home page Coder Social logo

clickhousemigrator's People

Contributors

apgapg avatar jtone123 avatar ridicoulous avatar zlzforever avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

clickhousemigrator's Issues

sqlserver导入报错 不允许为null

报错如下:
WARN: DROP TABLE IF EXISTS deer_him_sys_v5.equip_center;
Progress: 0 rows (0 rows/s.)ERROR: System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'System.Int32'.
at System.Linq.Enumerable.CastIterator[TResult](IEnumerable source)+MoveNext()
at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at ClickHouse.Ado.Impl.ColumnTypes.SimpleColumnType`1.ValuesFromConst(IEnumerable objects)
at ClickHouse.Ado.ClickHouseCommand.Execute(Boolean readResponse, ClickHouseConnection connection)
at ClickHouse.Ado.ClickHouseCommand.ExecuteNonQuery()
at ClickHouseMigrator.Migrator.<>c__DisplayClass14_0.b__2() in /Users/lewis/github/ClickHouseMigrator/src/ClickHouseMigrator/Migrator.cs:line 166

Elapsed 0 sec. Processed 145 rows (145 rows/s.)

目标数据库名称大小写问题

用--targetdb指定数据库名称时,使用大写如--targetdb ABC或是--targetdb "ABC"时,在clickhouse会创建名称了小写的abc数据库,请问怎样才能指定大写名称

Doesn't this work for SQLServer yet

I can't get this to work, it claims its not written yet.....

I installed it following your instructions, would be great if you could advise, if it is supposed to work.

thanks
Paul

mysql同步出错

-- mysql表
CREATE TABLE clickhousetest(
id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
verificatTaskUuid varchar(50) NOT NULL COMMENT 'uuid',
checkDuration int(11) DEFAULT NULL,
PRIMARY KEY (id)
)ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT charset=utf8mb4;

使用命令
chm --src mysql --src-host 192.168.1.2 --src-port 3306 --src-user root --src-password 12d@s --src-database test --src-table clickhousetest --drop-table true --host 192.168.1.1 --port 9000 --user default --password 22sWd --database test

出错信息:

WARN: DROP TABLE IF EXISTS test.clickhousetest;
Progress: 7 rows (1 rows/s.)ERROR: System.InvalidCastException: Unable to cast object of type 'System.UInt64' to type 'System.Int64'.
at System.Linq.Enumerable.CastIterator[TResult](IEnumerable source)+MoveNext()
at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at ClickHouse.Ado.Impl.ColumnTypes.SimpleColumnType`1.ValuesFromConst(IEnumerable objects)
at ClickHouse.Ado.ClickHouseCommand.Execute(Boolean readResponse, ClickHouseConnection connection)
at ClickHouse.Ado.ClickHouseCommand.ExecuteNonQuery()
at ClickHouseMigrator.Migrator.<>c__DisplayClass14_0.b__2() in C:\Users\Administrator\source\repos\ClickHouseMigrator-master\src\ClickHouseMigrator
Migrator.cs:line 166

Elapsed 5 sec. Processed 7 rows (1 rows/s.)

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.