<div dir="ltr">Julian,<div><br></div><div>Thank you!<div><br></div><div>I&#39;m using Mondrian 4.4, I follow the guide. and I get error log like</div><div><br></div><div>







<p class=""><span class="">016-05-24 15:07:47,851 ERROR [org.saiku.web.core.SecurityAwareConnectionManager] Error connecting: kylin_sales_cal_compos_test</span></p>
<p class=""><span class="">mondrian.rolap.RolapSchema$MondrianSchemaException: Key must have precisely one column; key [KYLIN_CATEGORY_GROUPINGS.LEAF_CATEG_ID, KYLIN_CATEGORY_GROUPINGS.SITE_ID] in table &#39;KYLIN_CATEGORY_GROUPINGS&#39;. (in Key) (at line 0, column 275)</span></p><p class=""><span class="">We have table KYLIN_SALES and KYLIN_CATEGORY_GROUPINGS.</span></p><p class="">the join relation like this.</p><p class=""><span class=""></span></p><ul class="" style="margin:0px;padding:0px;list-style:none;color:rgb(51,51,51);font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><li class="" style=""><code class="" style="font-family:Monaco,Menlo,Consolas,&#39;Courier New&#39;,monospace;font-size:12.6px;padding:2px 4px;color:rgb(199,37,78);white-space:nowrap;border-radius:4px;background-color:rgb(249,242,244)">DEFAULT.KYLIN_SALES.LEAF_CATEG_ID = DEFAULT.KYLIN_CATEGORY_GROUPINGS.LEAF_CATEG_ID</code> </li><li class="" style=""><code class="" style="font-family:Monaco,Menlo,Consolas,&#39;Courier New&#39;,monospace;font-size:12.6px;padding:2px 4px;color:rgb(199,37,78);white-space:nowrap;border-radius:4px;background-color:rgb(249,242,244)">DEFAULT.KYLIN_SALES.LSTG_SITE_ID = DEFAULT.KYLIN_CATEGORY_GROUPINGS.SITE_ID</code></li></ul><p class=""><span class="">Enclosure is the schema file.</span></p><p class="">Coulld you coorect me?</p><p class="">Thanks.</p></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 24, 2016 at 11:57 AM, Julian Hyde <span dir="ltr">&lt;<a href="mailto:julianhyde@gmail.com" target="_blank">julianhyde@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Are you using Mondrian version 3 or 4? Mondrian 4 supports composite keys. Define a composite primary key for the dimension table, and include multiple columns in the ForeignKeyLink.<div><br></div><div>See <a href="http://mondrian.pentaho.com/head/documentation/schema.php#Measures" target="_blank">http://mondrian.pentaho.com/head/documentation/schema.php#Measures</a>, towards the end of the section.</div><div><br></div><div>Neither version of Mondrian supports left join. Can you describe what you hope would happen? If a record in the “sales&quot; fact table has a “productId” value that doesn’t exist in the “product&quot; table, would you expect that that fact to be counted against a “null” member of the [Product] hierarchy? Each hierarchy has a null member, but the system removes them from axes. So you’d need a user-defined “other” member.</div><div><br></div><div>Julian</div><div><br><div><br><div><blockquote type="cite"><div><div class="h5"><div>On May 23, 2016, at 7:21 PM, Jian Zhong &lt;<a href="mailto:zhongjian@apache.org" target="_blank">zhongjian@apache.org</a>&gt; wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><div style="font-size:12.8px">Hi all,</div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">I&#39;m a developer of apache kylin.</span></div><div style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div style="font-size:12.8px"><span style="font-size:12.8px">I&#39;m trying to write a tool generate mondrian schema for Apache Kylin cubes.</span><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">As I know, mondrian does not support left join, and for composite key.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">If two tables join with more than one column,it seems not well supported.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I&#39;m blocked on how to define multiple columns join for tables.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Could anyone give me some guide?<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Best Regards!</div></div></div></div>
_______________________________________________<br>Mondrian mailing list<br><a href="mailto:Mondrian@pentaho.org" target="_blank">Mondrian@pentaho.org</a><br><a href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br></div></blockquote></div><br></div></div></div><br>_______________________________________________<br>
Mondrian mailing list<br>
<a href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a><br>
<a href="http://lists.pentaho.org/mailman/listinfo/mondrian" rel="noreferrer" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a><br>
<br></blockquote></div><br></div>