jeroen / mongolite

Fast and Simple MongoDB Client for R
https://jeroen.github.io/mongolite/
286 stars 65 forks source link

When do a find() I get Error: Elements not of equal length: 1121 1121 1121 1121 1121 1121 1120 #108

Closed xiaodaigh closed 6 years ago

xiaodaigh commented 6 years ago

The error is Elements not of equal length: 1121 1121 1121 1121 1121 1121 1120. It's a bit perplexing. And the data is sensistive, so I can't share.

I can say the data contains nested arrays, so there an array within an array.

jeroen commented 6 years ago

Can you try if using a mongolite iterator solves the problem?

jeroen commented 6 years ago

Closing this issue due to lack of activity. The problem is likely a bug in the simplification mechanism, but I can't debug it without example data.

Either way you can work around it by reading using a mongolite iterator.