Collibra DQ User Guide
2022.10
Search
⌃K

DQ Job MongoDB

We've moved! To improve customer experience, the Collibra Data Quality User Guide has moved to the Collibra Documentation Center as part of the Collibra Data Quality 2022.11 release. To ensure a seamless transition, dq-docs.collibra.com will remain accessible, but the DQ User Guide is now maintained exclusively in the Documentation Center.

Browse MongoDB like any other relational database

Using Owl's file tree explorer browse Mongo "collections" like "tables". Then use the wizard to create standard DQ scans.

CMD Line

Copy paste-able cmdline example for simple spark submit job.
-lib "/opt/owl/drivers/mongodb/"
-h localhost:5432/postgres
-master local[*]
-ds tpch.lineitem_7
-br 10 -deploymode client
-q "select * from tpch.lineitem where l_shipdate between '${rd} 00:00:00.000+0000'
and '${rdEnd} 00:00:00.000+0000' "
-bhlb 10 -rd "1998-12-01"
-driver "mongodb.jdbc.MongoDriver"
-loglevel INFO -cxn MongoDB -rdEnd "1998-12-02"

Drivers and Config

In order to make this possible OwlDQ requires 2 drivers, MongoDB driver and UnityJDBC Driver. Out of the box OwlDQ comes preconfigured with these drivers. You simply open the MongoDB connection template and paste in your JDBC URL.
driverClass: mongodb.jdbc.MongoDriver
path: /opt/owl/drivers/mongodb/
+-- mongoJdbc.jar
+-- unityJDBC.jar

Simply paste in JDBC Info

Discover Correlations, Relationships, DQ issues and Much More...

The following table presents the various SQL statements related to table-level actions and the corresponding MongoDB statements.https://docs.mongodb.com/manual/reference/sql-comparison/

Limiting Collections in the JDBC URL

jdbc:mongodb://<dbuser>:<password>@datalake0-dza1q.a.query.mongodb.net/<mydatabase>?ssl=true&authSource=admin&rebuildschema=true&tables=orders
There are 3 collections in this mongodb atlas lake. By adding &tables=orders in the URL params you can see only order collections show up in the explorer.

3 Collections in MongoDB Atlas

The total number of collections in mongodb atlas lake.