Got blank when after running script

bangbang93 shared this problem 4 years ago
Cannot Reproduce

The query is

db.orders.distinct('orderInfo.markingRule')
The result in mongo shell

[ null, "1", "AABBCC", "2314", "232", "123", "7878" ]
nosqlbooster-error.log file is empty

/e10c0f7132a8e83fd7669d32b07e41bd

Replies (4)

photo
1

Thanks for opening your issue here! If you're reporting a bug, please make sure you include steps to reproduce it.

  • NoSQLBooster Version
  • Operating System (Windows/Mac/Ubuntu):
  • MongoDB Version
  • Expected Behavior
  • Actual Behavior
  • How to Reproduce (Please attach sample JSON data)

photo
1

NoSQLBooster Version: 5.1.7Mac OS 10.14.4

MongoDB Version Percona-Mongodb 3.6.8-2.0

Expected Behavior:

Shows Result

Actual Behavior:

Blank screen

reproduce script:

db.getCollection("tests").insert([{
    "a": {
        "b": "1",
    }
}, {
    "a": {
        "b": null,
    }
}])
db.getCollection("tests").distinct('a.b')

photo
1

Also got blank on Mongodb 4.0.3

photo
1

Thank you for your bug feedback.

We tried a few times with Mac OS 10.14.4+MongoDB 4.0.3, but can't recall this issue locally. I want to ask, can this problem be reproduced on other machines of yours or your colleagues?

photo
1

I tried the same script on Windows 10+NoSQLBooster5.1.5+mongo 3.2.10, and the same machine with NoSQLBooster5.1.7+percona MongoDB 3.6.8-2.0 but cannot reproduce.

Only crash on my Macbook Pro

photo
Leave a Comment
 
Attach a file