🥳 RAPIDMINER 9.9 IS OUT!!! 🥳

The updates in 9.9 power advanced use cases and offer productivity enhancements for users who prefer to code.

CLICK HERE TO DOWNLOAD

bug report :NumberInt not supported in execute Mongo command

kaymankayman Member Posts: 613   Unicorn

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 !

Tagged:
0
0 votes

Declined · Last Updated

No activity or votes since Sep 2017. Please comment and cc sgenzer if this should be reopened. NOSQL-47

Comments

  • sgenzersgenzer 12Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,958  Community Manager
  • sgenzersgenzer 12Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,958  Community Manager

    pushed to dev team.

     

    SG

     

Sign In or Register to comment.