Skip to content

可视化建模 ​

TIP

使用非注解的方式实现数据建模。

此方式可实现轻量级的建模,复杂且工程化的建模建议使用注解方式。

1. 添加依赖 ​

xml
<dependency>
    <groupId>xyz.erupt</groupId>
    <artifactId>erupt-cube-design</artifactId>
    <version>${erupt.version}</version>
</dependency>

2. 增加菜单 ​

菜单类型值填:CubeDesignModel

3. 配置模型 ​

根据可视化页面配置 SQL、维度、指标即可:

  • Datasource:不配置则使用默认数据源
  • 维度:大多数场景不用配置,会自动将 SQL 的 Alias 转换为维度,如果转换后的细节需要调整可以通过此功能进行调整
  • 指标:配置聚合函数即可

指标管理 ​

贡献者

The avatar of contributor named as YuePeng YuePeng
The avatar of contributor named as Claude Fable 5.1 Claude Fable 5.1

页面历史

Released under the Apache-2.0 License.