RapidMiner

bug report :NumberInt not supported in execute Mongo command

Highlighted
Maven
Maven

bug report :NumberInt not supported in execute Mongo command

When using the Mongo command for bulk operations it seems NumberInt is not accepted. There is a BSON error given, while the same command works fine when using the mongo shell directly. Converting the NumberInt to NumberLong does work fine, but it is a bit inconvenient because all integers will be store as 64 instead of 32bit values, having a negative impact on size. Ommiting the Number is also not a valid option since it will be stored as real.

This works :

 

{update: "test_db", updates: [ { q: {"_id":NumberLong(123456)}, u: {"just something":"some value"},upsert:true}], ordered: false, writeConcern: { w: 0, wtimeout: 0 }}

 

This doesn't :

 

{update: "test_db", updates: [ { q: {"_id":NumberInt(654321)}, u: {"just something":"some value"},upsert:true}], ordered: false, writeConcern: { w: 0, wtimeout: 0 }}

 

  • Message: JSON reader was expecting a value but found 'NumberInt'.

 

Thanks for checking !