【问题标题】:Aggregation table created in Pentaho Aggregation Designer not present in from clause of query在 Pentaho 聚合设计器中创建的聚合表不存在于查询的 from 子句中
【发布时间】:2017-03-24 09:19:39
【问题描述】:

请查看以下在 mondrian 多维数据集上创建 JPivot 视图时生成的查询,该多维数据集在其架构中具有聚合表。

select
    `Dim_Time`.`Time_Id` as `c0`,
    `Dim_Time`.`month_no` as `c1`
from
    `Dim_Time` as `Dim_Time`
where
    `Dim_Time`.`Time_Id` = `AggTable1`.`Dim_Time_Month_(Key)`
group by
    `Dim_Time`.`Time_Id`,
    `Dim_Time`.`month_no`
order by
    ISNULL(`Dim_Time`.`Time_Id`) ASC, `Dim_Time`.`Time_Id` ASC

为什么 AggTable1 没有出现在 from 子句中?表和特定列存在于数据库中。

【问题讨论】:

    标签: mysql aggregate pentaho cube mondrian


    【解决方案1】:

    为了使用聚合表,您必须在 mondrian.properties 文件中启用以下属性。

    mondrian.rolap.aggregates.Read=true
    mondrian.rolap.aggregates.Use=true
    

    同样基于 mondrian 版本,您必须在架构文件中定义聚合表

    蒙德里安 4

    <MeasureGroup table='aggregate_table' type='aggregate'>
    

    蒙德里安 3.x

    <AggName name="aggregate_table"> 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-06
      • 1970-01-01
      • 2013-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-31
      • 2023-04-04
      相关资源
      最近更新 更多