PDA

View Full Version : Digging Mondrian



MattCasters
08-27-2007, 09:30 PM
On Friday I committed code to 3.0 trunk to allow people to execute an MDX query on a Mondrian server and get the result back in a tabular format. This particular code to “flatten” an OLAP cube into rows was written by Julian Hyde (http://julianhyde.blogspot.com/), the lead developer and founder of Mondrian OLAP a.k.a. Pentaho analyses.
If you run the Pentaho demo on your box and then look at the Analyses sample, you could see something like this:
http://www.kettle.be/images/jpivot-sample.png
Suppose you wanted to get this exact data to work with, create analytical data, exports, … Well, now you have the option of doing it in Kettle:
http://www.kettle.be/images/mondrian-input-1.png
What you do is create a database connection to the database that Mondrian reads from, hand it the location of the Mondrian schema (catalog). You then click on the MDX button in JPivot and copy the MDX query to the “Mondrian Input” step in Kettle. That’s all it takes.
You then can preview the output of the Dummy step, like this in screen shot:
http://www.kettle.be/images/mondrian-input-2.png
As you can see, integration of the different Pentaho software pieces is continuing…
Until next time!
Matt


More... (http://www.ibridge.be/?p=64)