<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OK - I'm back to a more logical broken status.&nbsp;<div><br></div><div>I got the latest Saiku plugin snapshot (Oct 31). &nbsp;It recognizes type="TimeDimension" as I think it should be. &nbsp;(Some other issues still, but making progress.)</div><div><br></div><div>However, the Query definition is failing. &nbsp;I have the following inside the PhysicalSchema:</div><div><br></div><div><div>&nbsp; &nbsp; &lt;Query alias="query_customer_geography" keyColumn="CustomerKey"&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;ExpressionList&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;SQL dialect="generic"&gt;&lt;![CDATA[</div><div>select c.CustomerKey, g.CountryRegionCode, g.StateProvinceName, g.City from dim_customer as c inner join dim_geography as g on c.GeographyKey = g.GeographyKey;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;&lt;/SQL&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/ExpressionList&gt;</div><div>&nbsp; &nbsp; &lt;/Query&gt;</div></div><div><br></div><div>But when the schema loads, I get the following exception message:</div><div><br></div><div><div>Caused by: org.eigenbase.xom.XOMException: In Schema: In PhysicalSchema: In Query: Expecting at least 1 &lt;mondrian.olap.MondrianDef$SQL&gt; but found 0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at mondrian.olap.MondrianDef$Schema.&lt;init&gt;(MondrianDef.java:258)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at mondrian.rolap.RolapSchemaLoader.loadStage0(RolapSchemaLoader.java:231)</div></div><div><br></div><div>I have verified that the query is correct, but this looks more like a validation problem. &nbsp;Leaving out the ExpressionList causes a different error saying it's an invalid Query. &nbsp;However, ExpressionList isn't in the MondrianSchema.xml in the latest pull from the Luganitas branch, so perhaps something is missing? &nbsp;FoodMart.mondrian.xml doesn't use the Query either, so I'm not seeing any examples.</div><div><br></div><div>Based on email from Julian I believe this is the correct format. &nbsp;I've tried all kinds of combinations (even adding a second SQL to see if it was some index error.) &nbsp;Ideas are greatly welcome.</div><div><br></div><div>Thanks,</div><div><br></div><div>Bill.</div><div><br></div><div><div><div><div>On Oct 31, 2012, at 1:07 PM, Paul Stoellberger &lt;<a href="mailto:p.stoellberger@gmail.com">p.stoellberger@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#FFFFFF"><div>So it is, or is not using the latest version? maven can be a bit weird when pulling snapshot builds. I'll have a look at that</div><div><br></div><div>-Paul<br><br><br><div><br></div></div><div><br>Am 31.10.2012 um 20:59 schrieb Julian Hyde &lt;<a href="mailto:jhyde@pentaho.com">jhyde@pentaho.com</a>&gt;:<br><br></div><div></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div><div>On Oct 31, 2012, at 11:59 AM, William Back &lt;<a href="mailto:wback@pentaho.com">wback@pentaho.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I got Saiku to accept the schema, but had to use type='TIME' (all caps). &nbsp;I'm not getting data now, but will verify that it's not something else in my schema. &nbsp;</div></blockquote><div><br></div><div>Yes, I recently changed it to upper-case, to match the values of olap4j's Dimension.Type enum. (Things are changing fast... sorry you got burned.)<div><br></div><div><a href="http://www.olap4j.org/api/org/olap4j/metadata/Dimension.Type.html">http://www.olap4j.org/api/org/olap4j/metadata/Dimension.Type.html</a></div><div><br></div><div>If the schema loads, everything should be OK. Your missing data is probably due to something else.</div><div><br></div><div>Julian</div></div></div></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>Mondrian mailing list</span><br><span><a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a></span><br><span><a href="http://lists.pentaho.org/mailman/listinfo/mondrian">http://lists.pentaho.org/mailman/listinfo/mondrian</a></span><br></blockquote></div>_______________________________________________<br>Mondrian mailing list<br><a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>http://lists.pentaho.org/mailman/listinfo/mondrian<br></blockquote></div><br></div></div></body></html>