Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: [Mondrian] RolapCell.java

  1. #1
    Ati Rosselet Guest

    Default [Mondrian] RolapCell.java

    Using VisualTotals, I suddenly was getting errors thrown when trying
    to check for drillthrough capability on a cell, although for left
    cells this should be possible. (class cast exception - cannot cast
    VisualTotalMember to RolapCalculatedMember) I fixed it by changing
    RolapCell.java

    from:
    RolapCalculatedMember measure = (RolapCalculatedMember) member;
    final Exp expr = measure.getFormula().getExpression();
    to:
    final Exp expr;
    if (member instanceof VisualTotalMember){
    VisualTotalMember vtMember = (VisualTotalMember)member;
    expr = vtMember.getExpression();
    } else {
    RolapCalculatedMember measure = (RolapCalculatedMember) member;
    expr = measure.getFormula().getExpression();
    }

    now drillthrough works fine for leaf members, but not for dynamic
    members (parents of summed parts).

    Just in case this helps anyone. There are probably other cases, and
    the parent might be able to be drilled through, but since it acts as a
    calcualated member, this may not be possible?
    Cheers
    Ati
    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  2. #2
    Julian Hyde Guest

    Default RE: [Mondrian] RolapCell.java

    Thanks. Can you log a jira case so we don't forget to include this patch.
    I'm guessing that the test case is straightforward -- a query on foodmart
    with visual totals on one axis, ask the visual total cell whether it is
    drillable.

    Julian


    > -----Original Message-----
    > From: mondrian-bounces (AT) pentaho (DOT) org
    > [mailto:mondrian-bounces (AT) pentaho (DOT) org] On Behalf Of Ati Rosselet
    > Sent: Sunday, April 10, 2011 9:13 AM
    > To: Mondrian developer mailing list
    > Subject: [Mondrian] RolapCell.java
    >
    > Using VisualTotals, I suddenly was getting errors thrown when trying
    > to check for drillthrough capability on a cell, although for left
    > cells this should be possible. (class cast exception - cannot cast
    > VisualTotalMember to RolapCalculatedMember) I fixed it by changing
    > RolapCell.java
    >
    > from:
    > RolapCalculatedMember measure = (RolapCalculatedMember) member;
    > final Exp expr = measure.getFormula().getExpression();
    > to:
    > final Exp expr;
    > if (member instanceof VisualTotalMember){
    > VisualTotalMember vtMember = (VisualTotalMember)member;
    > expr = vtMember.getExpression();
    > } else {
    > RolapCalculatedMember measure =
    > (RolapCalculatedMember) member;
    > expr = measure.getFormula().getExpression();
    > }
    >
    > now drillthrough works fine for leaf members, but not for dynamic
    > members (parents of summed parts).
    >
    > Just in case this helps anyone. There are probably other cases, and
    > the parent might be able to be drilled through, but since it acts as a
    > calcualated member, this may not be possible?
    > Cheers
    > Ati
    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian
    >


    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  3. #3
    Julian Hyde Guest

    Default RE: [Mondrian] RolapCell.java

    > Julian wrote:
    >
    > Thanks. Can you log a jira case so we don't forget to include
    > this patch.


    I see you logged http://jira.pentaho.com/browse/MONDRIAN-925. Thanks!

    Julian

    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  4. #4
    Ati Rosselet Guest

    Default Re: [Mondrian] RolapCell.java

    No problem. Thank you for all the good work.

    Which is the current/latest branch of mondrian in perforce for the 3.X
    branch - mondrian-release-3.2.2.. or the main mondrian directory - or
    is that the 4.X branch?? Just wanted to compare with other local
    changes/fixes I've implemented over the past while...
    Ati

    On Sun, Apr 10, 2011 at 8:52 PM, Julian Hyde <jhyde (AT) pentaho (DOT) com> wrote:
    >
    >> Julian wrote:
    >>
    >> Thanks. Can you log a jira case so we don't forget to include
    >> this patch.

    >
    > I see you logged http://jira.pentaho.com/browse/MONDRIAN-925. Thanks!
    >
    > Julian
    >
    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian
    >

    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

  5. #5
    Luc Boudreau Guest

    Default Re: [Mondrian] RolapCell.java

    Here are the branches / versions.

    //open/mondrian -> Mondrian 3.3.X
    //open/mondrian-release/3.2 -> 3.2.1
    //open/mondrian-release/3.2.2 -> 3.2.2
    //open/mondrian-release/lagunitas -> 4.0

    These days, we use the 3.3.X branch.

    Luc


    On Sun, Apr 10, 2011 at 3:22 PM, Ati Rosselet <ati.rosselet (AT) gmail (DOT) com>wrote:

    > No problem. Thank you for all the good work.
    >
    > Which is the current/latest branch of mondrian in perforce for the 3.X
    > branch - mondrian-release-3.2.2.. or the main mondrian directory - or
    > is that the 4.X branch?? Just wanted to compare with other local
    > changes/fixes I've implemented over the past while...
    > Ati
    >
    > On Sun, Apr 10, 2011 at 8:52 PM, Julian Hyde <jhyde (AT) pentaho (DOT) com> wrote:
    > >
    > >> Julian wrote:
    > >>
    > >> Thanks. Can you log a jira case so we don't forget to include
    > >> this patch.

    > >
    > > I see you logged http://jira.pentaho.com/browse/MONDRIAN-925. Thanks!
    > >
    > > Julian
    > >
    > > _______________________________________________
    > > Mondrian mailing list
    > > Mondrian (AT) pentaho (DOT) org
    > > http://lists.pentaho.org/mailman/listinfo/mondrian
    > >

    > _______________________________________________
    > Mondrian mailing list
    > Mondrian (AT) pentaho (DOT) org
    > http://lists.pentaho.org/mailman/listinfo/mondrian
    >


    _______________________________________________
    Mondrian mailing list
    Mondrian (AT) pentaho (DOT) org
    http://lists.pentaho.org/mailman/listinfo/mondrian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.