elasticsearch-jdbc icon indicating copy to clipboard operation
elasticsearch-jdbc copied to clipboard

Import MySQL data, ID error

Open sz-sunset opened this issue 8 years ago • 4 comments

data type _id id enterpriseMaterial 806450891548564141 1 806450891548564100 enterpriseMaterial 806450891548564146 1 806450891548564100

sql SELECT ID AS _id,ID .........

There are a lot of similar data

sz-sunset avatar Sep 20 '16 09:09 sz-sunset

@jprante help mi!

sz-sunset avatar Sep 20 '16 09:09 sz-sunset

@jprante , it's elasticsearch-head plugin display problem

sz-sunset avatar Sep 22 '16 09:09 sz-sunset

yes, because javascript cannot support int64 data and will lose precision if your number is long than 16digit, but the data in es is correct

cch123 avatar Sep 24 '16 15:09 cch123

You can try to convert to string with SQL CAST or CONVERT operator http://dev.mysql.com/doc/refman/5.7/en/cast-functions.html#function_cast

jprante avatar Sep 24 '16 17:09 jprante