[Mondrian] RolapUtil.executeQuery

Kleyson Rios kleysonrios at saude.go.gov.br
Wed Jun 13 14:52:50 EDT 2012


I am trying to understand some things and in the 
mondrian.rolap.SqlTupleReader we have:

protected void prepareTuples(
         DataSource dataSource,
         TupleList partialResult,
         List<List<RolapMember>> newPartialResult)
     {
                 (...)

                 stmt = RolapUtil.executeQuery(
                     dataSource, sql, types, maxRows, 0,
                     new SqlStatement.StatementLocus(
                         Locus.peek().execution,
                         "SqlTupleReader.readTuples " + partialTargets,
                         message,
                         SqlStatementEvent.Purpose.TUPLES, 0),
                     -1, -1);

                 (...)
}

And when I run stmt I got the following exception at 
Locus.peek().execution: "throw new EmptyStackException();"

I would expect get a result from the sql.

Parameters:
dataSource: org.apache.commons.dbcp.PoolingDataSource at 1def85

sql: select "CUSTOMER_W_TER"."TERRITORY" as "c0" from "CUSTOMER_W_TER" 
as "CUSTOMER_W_TER" group by "CUSTOMER_W_TER"."TERRITORY" order by CASE 
WHEN "CUSTOMER_W_TER"."TERRITORY" IS NULL THEN 1 ELSE 0 END, 
"CUSTOMER_W_TER"."TERRITORY" ASC

types: [null]

maxRows: 0


Any idea ?

Regards.

-- 
Kleyson Rios
Gestor de TI
Coordenador de BI / Banco de Dados
Gerência de Tecnologia da Informação
Secretaria de Estado da Saúde de Goiás
(62) 3201-3707

Se não pode vencer pelo talento, vença pelo esforço. (Dave Weinbaum)



More information about the Mondrian mailing list