Using a Thin Kettle data source
In this recipe, we are going to execute a SQL query that will be passed down to the Thin Kettle driver. This special driver will convert the standard SQL query into something that MongoDB can understand. The Thin Kettle driver allows users to execute standard SQL against MongoDB.
Getting ready
To get ready for this recipe, you first need to start the MongoDB server with the same database as that of the last chapter. You will also have to start the Pentaho BA Server using the server control scripts. Once it is started, you can log in to the BI Server.
How to do it…
Perform the following steps:
In the PUC, go to File | New | CDE Dashboard.
Click on the Data Sources tab.
Expand the SQL Queries data source category.
Click on the sql over sqljndi data source.
Set the Name property to QUERY4.
Then set the JNDI property to Pentaho MongoDB Cookbook Kettle Thin.
Open the Query Editor property, and copy and paste the following SQL query:
select customerCountry, SUM(totalPrice)...