Issue 1104 in tungsten-replicator: MongoDB: Values of almost all types (integer, decimal etc.) are all converted to Strings

4 views
Skip to first unread message

tungsten-...@googlecode.com

unread,
Mar 10, 2015, 6:15:46 AM3/10/15
to tungsten-repl...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium FoundIn

New issue 1104 by ngo...@mobilus.co.jp: MongoDB: Values of almost all types
(integer, decimal etc.) are all converted to Strings
https://code.google.com/p/tungsten-replicator/issues/detail?id=1104

In MongoApplier.java, there's this line:
doc.put(name, value.toString())

https://code.google.com/p/tungsten-replicator/source/browse/trunk/replicator/src/java/com/continuent/tungsten/replicator/applier/MongoApplier.java#338

So values of almost all types are all converted to Strings. For example,
Integers in MySQL are converted to Strings in MongoDB, thus programs using
MongoDB must add conversions. This is very tedious.

Please keep the types of the values.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

tungsten-...@googlecode.com

unread,
Mar 10, 2015, 7:54:25 AM3/10/15
to tungsten-repl...@googlegroups.com
Updates:
Status: Invalid

Comment #1 on issue 1104 by g.maxia: MongoDB: Values of almost all types
(integer, decimal etc.) are all converted to Strings
https://code.google.com/p/tungsten-replicator/issues/detail?id=1104

This behavior is by design.
Users so far have not complained.
You are welcome to write a more versatile applier.
Please use the mailing list for this kind of discussion, as this is not a
bug.
Reply all
Reply to author
Forward
0 new messages