[Mondrian] MDX Expression like <Member> <Op> <String> failed

Julian Hyde jhyde at pentaho.com
Wed Jun 3 18:22:39 EDT 2009


I can see this MIGHT be a problem - but you will need to supply a testcase
to convince me.

> -----Original Message-----
> From: mondrian-bounces at pentaho.org 
> [mailto:mondrian-bounces at pentaho.org] On Behalf Of Alexander Korsukov
> Sent: Tuesday, June 02, 2009 10:00 PM
> To: Mondrian developer mailing list
> Subject: [Mondrian] MDX Expression like <Member> <Op> <String> failed
> 
> As I can see problem in the following method
> 
> mondrian-3.1.1.12687\src\main\mondrian\calc\impl\AbstractExpCo
> mpiler.java
> line 250:
> 
>     public StringCalc compileString(Exp exp) {
>         return (StringCalc) compile(exp);
>     }
> 
> probably should be (as for other scalar types)
> 
>     public StringCalc compileString(Exp exp) {
>         return (StringCalc) compileScalar(exp, false);
>     }
> 
> otherwise (for example) MemberExp compiled to ConstantCalc instead of
> MemberValueCalc as expected.
> 
> -- 
> Alexander Korsukov
> _____________________________________________________
> mailto:akorsukov at gmail.com                icq:8572488
> (2E0A2052)                        xmpp:shko at jabber.ru
> 
> _______________________________________________
> Mondrian mailing list
> Mondrian at pentaho.org
> http://lists.pentaho.org/mailman/listinfo/mondrian
> 
> 
> 





More information about the Mondrian mailing list