<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I think that's not possible by now.<br>
    <br>
    <div class="moz-cite-prefix">Jian Zhong wrote on 25/05/16 12:30:<br>
    </div>
    <blockquote
cite="mid:CAPb8LCYmf1iOSmMFnuTCofVbLmcgSvko12V7f5Fp3g18QHqDSQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">one more question,
        <div><br>
        </div>
        <div>since the join relation is between tables.</div>
        <div><br>
        </div>
        <div>in mondrian schema, i need to define composite keys in
          every dimension from the table.<br>
        </div>
        <div><br>
        </div>
        <div>which cause many duplicate code.<br>
        </div>
        <div><br>
        </div>
        <div>Can I define composite key at table level?</div>
        <div><br>
        </div>
        <div>thanks!</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, May 25, 2016 at 3:21 PM, Jian
          Zhong <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:hellowode110@gmail.com" target="_blank">hellowode110@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 dir="ltr">Thank you Isaias !
              <div><br>
              </div>
              <div>you saved my day.</div>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Tue, May 24, 2016 at 4:28
                    PM, Isaias Sanchez <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:isaias.sanchez.l@gmail.com"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:isaias.sanchez.l@gmail.com">isaias.sanchez.l@gmail.com</a></a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000"> I guess:<br>
                        <br>
                                &lt;Table
                        name="KYLIN_CATEGORY_GROUPINGS"&gt;<br>
                                    &lt;key&gt;<br>
                                        &lt;column
                        name="LEAF_CATEG_ID"/&gt;<br>
                                    &lt;/key&gt;<br>
                                &lt;/Table&gt;  <br>
                        <br>
                        or <br>
                        <br>
                                &lt;Table
                        name="KYLIN_CATEGORY_GROUPINGS"&gt;<br>
                                &lt;/Table&gt;  <br>
                        <br>
                        Will do the job.<br>
                        <br>
                        The composite key leave it only in dimension
                        part.<br>
                        <br>
                        Cheers,<br>
                        <br>
                        Isaias S.<br>
                        <br>
                        <div>Jian Zhong wrote on 24/05/16 10:12:<br>
                        </div>
                        <div>
                          <div>
                            <blockquote type="cite">
                              <div dir="ltr">Julian,
                                <div><br>
                                </div>
                                <div>Thank you!
                                  <div><br>
                                  </div>
                                  <div>I'm using Mondrian 4.4, I follow
                                    the guide. and I get error log like</div>
                                  <div><br>
                                  </div>
                                  <div>
                                    <p><span>016-05-24 15:07:47,851
                                        ERROR
                                        [org.saiku.web.core.SecurityAwareConnectionManager]
                                        Error connecting:
                                        kylin_sales_cal_compos_test</span></p>
                                    <p><span>mondrian.rolap.RolapSchema$MondrianSchemaException:

                                        Key must have precisely one
                                        column; key
                                        [KYLIN_CATEGORY_GROUPINGS.LEAF_CATEG_ID,
                                        KYLIN_CATEGORY_GROUPINGS.SITE_ID]
                                        in table
                                        'KYLIN_CATEGORY_GROUPINGS'. (in
                                        Key) (at line 0, column 275)</span></p>
                                    <p><span>We have table KYLIN_SALES
                                        and KYLIN_CATEGORY_GROUPINGS.</span></p>
                                    <p>the join relation like this.</p>
                                    <p><span></span></p>
                                    <ul>
                                      <li><code>DEFAULT.KYLIN_SALES.LEAF_CATEG_ID

                                          =
                                          DEFAULT.KYLIN_CATEGORY_GROUPINGS.LEAF_CATEG_ID</code> </li>
                                      <li><code>DEFAULT.KYLIN_SALES.LSTG_SITE_ID

                                          =
                                          DEFAULT.KYLIN_CATEGORY_GROUPINGS.SITE_ID</code></li>
                                    </ul>
                                    <p><span>Enclosure is the schema
                                        file.</span></p>
                                    <p>Coulld you coorect me?</p>
                                    <p>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
                                      moz-do-not-send="true"
                                      href="mailto:julianhyde@gmail.com"
                                      target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:julianhyde@gmail.com">julianhyde@gmail.com</a></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 moz-do-not-send="true"
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" fact table has a
                                        “productId” value that doesn’t
                                        exist in the “product" 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>
                                                  <div>On May 23, 2016,
                                                    at 7:21 PM, Jian
                                                    Zhong &lt;<a
                                                      moz-do-not-send="true"
href="mailto:zhongjian@apache.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:zhongjian@apache.org">zhongjian@apache.org</a></a>&gt;

                                                    wrote:</div>
                                                  <br>
                                                </div>
                                              </div>
                                              <div>
                                                <div>
                                                  <div>
                                                    <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'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'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'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
                                                  moz-do-not-send="true"
href="mailto:Mondrian@pentaho.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a></a><br>
                                                <a
                                                  moz-do-not-send="true"
href="http://lists.pentaho.org/mailman/listinfo/mondrian"
                                                  target="_blank"><a class="moz-txt-link-freetext" href="http://lists.pentaho.org/mailman/listinfo/mondrian">http://lists.pentaho.org/mailman/listinfo/mondrian</a></a><br>
                                              </div>
                                            </blockquote>
                                          </div>
                                          <br>
                                        </div>
                                      </div>
                                    </div>
                                    <br>
_______________________________________________<br>
                                    Mondrian mailing list<br>
                                    <a moz-do-not-send="true"
                                      href="mailto:Mondrian@pentaho.org"
                                      target="_blank">Mondrian@pentaho.org</a><br>
                                    <a moz-do-not-send="true"
                                      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>
                              <br>
                              <fieldset></fieldset>
                              <br>
                              <pre>_______________________________________________
Mondrian mailing list
<a moz-do-not-send="true" href="mailto:Mondrian@pentaho.org" target="_blank">Mondrian@pentaho.org</a>
<a moz-do-not-send="true" href="http://lists.pentaho.org/mailman/listinfo/mondrian" target="_blank">http://lists.pentaho.org/mailman/listinfo/mondrian</a>
</pre>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </div>
                      <br>
                      _______________________________________________<br>
                      Mondrian mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:Mondrian@pentaho.org"
                        target="_blank">Mondrian@pentaho.org</a><br>
                      <a moz-do-not-send="true"
                        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>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Mondrian mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mondrian@pentaho.org">Mondrian@pentaho.org</a>
<a class="moz-txt-link-freetext" href="http://lists.pentaho.org/mailman/listinfo/mondrian">http://lists.pentaho.org/mailman/listinfo/mondrian</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>