[Mondrian] Bug with tuple function?

Julian Hyde julianhyde at speakeasy.net
Tue Jul 10 17:01:39 EDT 2007


This is bug 1735821, which was fixed in change 9455.
 
I will add that query as a testcase, because the testcase for that change
didn't check the tuple constructor operator '(...)', only the 'item.(...)'
function.
 
Julian


  _____  

From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org] On
Behalf Of Anton Nikitin
Sent: Tuesday, July 10, 2007 10:53 AM
To: 'Mondrian developer mailing list'
Subject: [Mondrian] Bug with tuple function?



Probably another one error.

 

with 

member [Product].[Test] as '([Product].[Food],Dimensions(0).defaultMember)' 

select 

{[Product].[Test], [Product].[Food]} on columns, 

{[Measures].[Store Sales]} on rows 

from Sales

 

Got NullPointerException (MSAS 2000 works):

 

java.lang.NullPointerException
        at mondrian.olap.type.TupleType.getValueType(TupleType.java:57)
        at
mondrian.calc.impl.AbstractExpCompiler.compileScalar(AbstractExpCompiler.jav
a:238)
        at mondrian.olap.Query.compileExpression(Query.java:981)
        at
mondrian.rolap.RolapEvaluator$RolapEvaluatorRoot.getCompiled(RolapEvaluator.
java:170)
        at
mondrian.rolap.RolapEvaluator.evaluateCurrent(RolapEvaluator.java:422)
        at mondrian.rolap.RolapResult.executeStripe(RolapResult.java:863)
        at mondrian.rolap.RolapResult.executeStripe(RolapResult.java:940)
        at mondrian.rolap.RolapResult.executeStripe(RolapResult.java:940)
        at mondrian.rolap.RolapResult.executeBody(RolapResult.java:766)
        at mondrian.rolap.RolapResult.<init>(RolapResult.java:390)
        at mondrian.rolap.RolapConnection.execute(RolapConnection.java:410)
        at
mondrian.web.servlet.MDXQueryServlet.processRequest(MDXQueryServlet.java:86)
        at
mondrian.web.servlet.MDXQueryServlet.doGet(MDXQueryServlet.java:228)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:744)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
        at java.lang.Thread.run(Thread.java:595)

 

Anton

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20070710/0058e414/attachment.html 


More information about the Mondrian mailing list