有人能解释一下为什么这个针对Saiku rest api执行的mdx查询没有返回预期的cellset吗?此查询以mdx类型ThinQuery执行。
SELECT
{
[Location.CountryHierarchy].[Croatia]
,[Location.CountryHierarchy].[Serbia]
} ON COLUMNS
,Hierarchize
(
Union
(
{
[Product.ProductHierarchy].[Drinks]
,[Product.ProductHierarchy].[Food]
}
,[Product.ProductHierarchy].[Drinks].Children
)
) ON ROWS
FROM [Sales cube];预期输出(用jpivot、pivot4j和/MDX资源管理器测试) ExpectedResult
在Android客户端上呈现的实际结果正在运行--只是为了确保我也检查了从saiku服务器返回的json,并且确实丢失了单元格。实际效果
发布于 2016-01-14 10:11:54
如果使用execute端点执行,并在其中传递MDX或查询模型,则需要使用属性部分,尝试如下:
"properties": {
"saiku.olap.query.automatic_execution": true,
"saiku.olap.query.nonempty": true,
"saiku.olap.query.nonempty.rows": true,
"saiku.olap.query.nonempty.columns": true,
"saiku.ui.render.mode": "table",
"saiku.olap.query.filter": true,
"saiku.olap.result.formatter": "flat",
"org.saiku.query.explain": true,
"org.saiku.connection.scenario": false,
"saiku.olap.query.drillthrough": true
}发布于 2016-01-14 08:52:38
也许可以尝试添加[ALL]成员的食物,以强制这个问题?
这是我的AdvWrks模拟:
SELECT
{
[Product].[Category].&[4]
,[Product].[Category].&[1]
} ON 0
,Hierarchize
(
Union
(
{
[Customer].[Customer Geography].[Country].&[Australia]
,[Customer].[Customer Geography].[Country].&[Canada]
}
,{
[Customer].[Customer Geography].[Country].&[Australia].Children
,[Customer].[Customer Geography].[Country].&[Canada].[All]
}
)
) ON 1
FROM [Adventure Works]
WHERE
[Measures].[Internet Sales Amount];所以在你的场景中:
SELECT
{
[Location.CountryHierarchy].[Croatia]
,[Location.CountryHierarchy].[Serbia]
} ON COLUMNS
,Hierarchize
(
{
[Product.ProductHierarchy].[Drinks]
,[Product.ProductHierarchy].[Food]
,[Product.ProductHierarchy].[Drinks].Children
}
) ON ROWS
FROM [Sales cube];https://stackoverflow.com/questions/34784310
复制相似问题