# Apache Superset

**Apache Superset** 是一个开源的数据探索与可视化平台：一个 Web 应用，用户可以在其中基于支持 SQL 的数据库构建图表和交互式仪表板，方式有两种——无代码可视化构建器，或名为 SQL Lab 的 SQL 编辑器。<sup>[1](https://superset.apache.org/)</sup><sup> • </sup><sup>[2](https://news.apache.org/foundation/entry/the-apache-software-foundation-announces70)</sup> 它是 Apache 软件基金会的顶级项目，以 [Apache License](https://www.edgepedia.org/zh/apache-license) 2.0 分发。<sup>[2](https://news.apache.org/foundation/entry/the-apache-software-foundation-announces70)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 2015 年创建于 Airbnb；2017 年 5 月进入 Apache 孵化器；2021 年 1 月 21 日成为 Apache 顶级项目，同时发布 1.0 版本<sup>[2](https://news.apache.org/foundation/entry/the-apache-software-foundation-announces70)</sup> |
| 架构 | Python（Flask）后端，带 API 层，前端为通过 Webpack 构建的 React；另有一个独立的元数据库，存储图表、仪表板和用户定义<sup>[3](https://superset.apache.org/admin-docs/6.1.0/installation/architecture/)</sup> |
| 数据访问 | 可查询任何支持 SQL、且有 Python DB-API 驱动和 SQLAlchemy 方言的数据存储；文档列出了 81 个受支持的数据库，功能支持程度各不相同<sup>[4](https://superset.apache.org/docs/)</sup><sup> • </sup><sup>[5](https://superset.apache.org/docs/databases/)</sup> |
| 可视化 | 预装 40 多种可视化类型，从折线图到地理空间图，并提供用于自定义可视化的插件架构<sup>[1](https://superset.apache.org/)</sup> |
| 异步查询 | 长时间运行的查询通过 Celery worker 执行，配合消息代理（推荐 Redis 或 RabbitMQ）和结果后端<sup>[6](https://superset.apache.org/docs/configuration/async-queries-celery/)</sup> |
| 最新版本 | 6.1.0，2026 年 5 月 1 日发布，新增了面向 AI 助手的 MCP 工具、成熟的扩展框架和全局任务框架；7.0 发布分支已于 2026 年 9 月切出<sup>[7](https://github.com/apache/superset/blob/master/CHANGELOG/6.1.0.md)</sup><sup> • </sup><sup>[8](https://github.com/apache/superset/discussions/43715)</sup> |
| 已知用户 | Airbnb、美国运通、Dropbox、Lyft、Netflix、尼尔森、Rakuten Viki、Twitter 和 Udemy 等<sup>[2](https://news.apache.org/foundation/entry/the-apache-software-foundation-announces70)</sup> |

## 历史与治理

该项目于 2015 年在 Airbnb 启动，2017 年 5 月进入 Apache 孵化器。Apache 软件基金会于 2021 年 1 月 21 日宣布其为顶级项目，同时发布了 1.0 版本，其功能列表包括无代码可视化构建器、SQL 编辑器与元数据工作流、轻量级语义层、薄缓存层、可扩展的企业认证，以及带定时报告的通知告警。<sup>[2](https://news.apache.org/foundation/entry/the-apache-software-foundation-announces70)</sup> 时任 Apache Superset 副总裁的[马克西姆·博舍曼](https://www.edgepedia.org/zh/maxime-beauchemin)（Maxime Beauchemin）表示，该项目治理遵循 ASF 的包容、开放和协作原则。<sup>[2](https://news.apache.org/foundation/entry/the-apache-software-foundation-announces70)</sup>

该项目的 PMC 成立于 2020 年 11 月 17 日。2026 年 5 月的一份董事会报告记录有 77 名提交者和 39 名 PMC 成员，项目被描述为持续进行中，活跃度和社区参与度都很高。<sup>[9](https://apache.org/foundation/board/minutes/Superset.html)</sup>

## 工作原理

Superset 充当存放数据的数据库之上的一层薄层。当用户打开图表或仪表板时，Superset 针对底层数据仓库生成一条 SQL 查询，数据库执行该查询，结果被渲染为可视化。应用本身由 Python（Flask）后端、API 层和用 [Webpack](https://www.edgepedia.org/zh/webpack) 构建的 React 前端组成。<sup>[3](https://superset.apache.org/admin-docs/6.1.0/installation/architecture/)</sup> 由于处理由数据库完成，FAQ 指出 Superset 甚至可以处理超大型数据库，而可接受的性能取决于数据库能否以用户可接受的速度执行查询。<sup>[10](https://superset.apache.org/docs/frequently-asked-questions/)</sup>

完整安装包含四个组件：Superset 应用、元数据库、可选的缓存层，以及可选的 worker 和 beat 调度器。元数据库保存图表和仪表板定义、用户信息和日志；Superset 在此角色上使用 [PostgreSQL](https://www.edgepedia.org/zh/postgresql) 和 MySQL 进行测试。缓存层存储查询结果，因此第二次加载同一图表时会从缓存读取，同时还兼作 worker 的消息代理。大多数安装使用 Celery 作为 worker 和 beat，它们支持告警和报告、异步查询以及仪表板缩略图。<sup>[3](https://superset.apache.org/admin-docs/6.1.0/installation/architecture/)</sup> 对于运行时间超过典型 Web 请求超时（30 到 60 秒）的查询，管理员需配置 Celery worker、Redis 或 RabbitMQ 等代理，以及结果后端——可以是 Redis、Memcached、S3、MinIO 或文件系统。<sup>[6](https://superset.apache.org/docs/configuration/async-queries-celery/)</sup>

**连接数据库。** Superset 不捆绑数据库连接；必须为每种引擎安装所需的驱动包。当数据库具有符合 Python 规范的 SQLAlchemy 方言和 DBAPI 驱动时，即可通过 SQLAlchemy 连接器获得支持。数据库引擎规范接口在此范围之外添加引擎特定行为，例如用于时间序列查询的时间粒度函数、引擎是否支持子查询（若不支持，Superset 可能运行两阶段查询作为补偿），以及游标处理。<sup>[11](https://superset.apache.org/docs/faq/)</sup> 文档列出了 81 个受支持的数据库，功能支持程度各不相同，包括 Presto、Trino、Athena 和 [Databricks](https://www.edgepedia.org/zh/databricks)。<sup>[5](https://superset.apache.org/docs/databases/)</sup><sup> • </sup><sup>[4](https://superset.apache.org/docs/)</sup>

## 面向分析师的功能

Superset 提供两条主要的图表创建路径：拖拽式可视化构建器和 SQL Lab——一个用于编写自定义查询、浏览数据库元数据和使用 Jinja 模板的 SQL IDE。<sup>[1](https://superset.apache.org/)</sup> 数据集有物理和虚拟两种形式；虚拟数据集是抽象为表的 SQL 查询，允许跨多个表进行连接和联合，局限在于 Superset 实际上是在查询之上再运行查询，因此性能取决于数据库。<sup>[10](https://superset.apache.org/docs/frequently-asked-questions/)</sup>

该平台包含一个薄语义层，存储两类计算数据：虚拟指标——跨列聚合的 SQL 表达式（例如 `SUM(recovered) / SUM(confirmed)`），可作为图表指标使用；以及虚拟计算列——自定义单列的 SQL 表达式，不允许使用聚合函数。指标还可以为团队进行认证。<sup>[12](https://superset.apache.org/user-docs/using-superset/creating-your-first-dashboard/)</sup> 其他列出的功能包括加快图表和仪表板加载的数据缓存、用于交互的 Jinja 模板和仪表板过滤器、用于品牌化的 CSS 模板、交叉过滤、钻取到明细和按维度钻取分析，以及用于新功能的功能标志。<sup>[1](https://superset.apache.org/)</sup>

**嵌入。** 仪表板可以通过 `@superset-ui/embedded-sdk` 包嵌入宿主应用，该包插入一个 iframe，并通过从服务器端调用 Superset 的 `/api/v1/security/guest_token/` 端点获取的访客令牌进行认证。必须启用 `EMBEDDED_SUPERSET` 功能标志，且生产环境中必须更改访客令牌 JWT 密钥的默认值。<sup>[13](https://superset.apache.org/user-docs/using-superset/embedding/)</sup><sup> • </sup><sup>[14](https://github.com/apache/superset/blob/master/superset-embedded-sdk/README.md)</sup>

## 扩展与 AI 集成

6.1.0 版本引入了成熟的扩展系统，灵感来自 VS Code 扩展模型，允许组织在不修改核心代码库的情况下添加自定义功能。扩展是自包含的 `.supx` 包，结合了 React/[TypeScript](https://www.edgepedia.org/zh/typescript) 前端和 Python 后端组件，通过 Webpack Module Federation 在运行时加载。它们可以提供自定义 UI 组件、命令和菜单、`/extensions/` 命名空间下的 REST API 端点，以及 MCP 工具和提示。<sup>[15](https://superset.apache.org/developer-docs/6.1.0/extensions/overview/)</sup>

Superset 通过模型上下文协议（MCP）支持 AI 助手，从 5.0 版本起可用，需管理员部署 MCP 服务器。兼容 MCP 的客户端（如 Claude 和 ChatGPT）可以列出数据集和仪表板、通过预览优先的工作流创建和修改图表（在用户要求之前图表不会被保存）、组装仪表板，以及通过自然语言运行 SQL。<sup>[16](https://superset.apache.org/user-docs/6.1.0/using-superset/using-ai-with-superset/)</sup> 6.1.0 更新日志记录了多项 MCP 功能新增，包括图表创建、虚拟数据集创建和数据库连接列表工具。<sup>[7](https://github.com/apache/superset/blob/master/CHANGELOG/6.1.0.md)</sup>

## 部署与安全

安装选项包括 [Docker Compose](https://www.edgepedia.org/zh/docker-compose)——会启动 Superset 应用、PostgreSQL 元数据库、Redis 缓存以及 Celery worker 和 beat 服务——以及 Kubernetes Operator，文档推荐在生产环境中使用后者。从 PyPI 安装只会创建应用本身，缓存和 worker 组件需另行配置。<sup>[17](https://superset.apache.org/docs/installation/installation-methods/)</sup><sup> • </sup><sup>[3](https://superset.apache.org/admin-docs/6.1.0/installation/architecture/)</sup> 社区管理员报告称，8 GB 内存和 2 个 vCPU 足以支撑中等规模的实例；规模取决于用户数量与活跃度，而非数据大小，且使用量往往会出现峰值，例如会议期间同时加载同一仪表板时。<sup>[10](https://superset.apache.org/docs/frequently-asked-questions/)</sup>

安全文档直言不讳地指出，Superset 是一个数据可视化与探索平台，不是数据库防火墙，也不是数据仓库的全面安全解决方案，保护底层数据库的责任在于数据库管理员。默认配置为易用性和开发便利而优化，而非为安全优化。推荐的加固措施包括：在反向代理或负载均衡器后终止 HTTPS、使用仅具有所需 `SELECT` 权限的专用低权限数据库用户、使用 `DISALLOWED_SQL_FUNCTIONS` 列表限制危险的 SQL 函数，以及使用 Web 应用防火墙。在 Superset 4.0 及更高版本中，用于设置安全头的 Flask-Talisman 默认禁用，必须在 `superset_config.py` 中显式启用。<sup>[18](https://superset.apache.org/admin-docs/security/securing_superset/)</sup>

## 采用情况与对比

Superset 在 Airbnb、美国运通、Dropbox、Lyft、Netflix、尼尔森、Rakuten Viki、Twitter 和 Udemy 等公司中使用。<sup>[2](https://news.apache.org/foundation/entry/the-apache-software-foundation-announces70)</sup> Dropbox 于 2019 年引入，2020 年初投入生产运行，并将其作为公司主要的数据探索工具，其决定因素包括可跨团队共享的可复用虚拟列和指标，以及细粒度的访问控制列表。<sup>[19](https://dropbox.tech/application/why-we-chose-apache-superset-as-our-data-exploration-platform)</sup>

与同类开源工具相比，卢布林理工大学 2026 年的一项同行评审研究让 20 名参与者在 Tableau、Apache Superset 和 Metabase 中完成任务。Metabase 获得最高的易用性评分，Tableau 获得最高的可定制性评分，Superset 在这两项上均为中等评分，其整体满意度较低，反映出参与者在仪表板配置方面遇到的挑战；25% 的受访者偏好 Superset，而 Tableau 为 85%。<sup>[20](https://ph.pollub.pl/index.php/jcsi/article/download/8369/5363/41806)</sup> 工程界的对比将两个领先的开源选项描述为理念上相反：Superset 是基金会治理、Apache 2.0 许可、SQL 优先的平台，组件众多；Metabase 则是企业主导的 AGPL 产品，以可视化查询构建器为核心。<sup>[21](https://www.drafted.work/blog/superset-vs-metabase)</sup>

## 发布节奏

最新版本 6.1.0 于 2026 年 5 月 1 日发布。<sup>[7](https://github.com/apache/superset/blob/master/CHANGELOG/6.1.0.md)</sup> 在 2026 年 9 月的一次维护者讨论中，发布经理维尔·布罗费尔特（Ville Brofeldt）确认 7.0 发布分支已切出，首个候选版本预计在 2026 年 9 月底之前发布，且 7.0 中大量重大变更很可能需要经过多个候选版本才能稳定发布。项目的发布日程表列出 7.0 的生命周期终止时间为 2027 年下半年。<sup>[8](https://github.com/apache/superset/discussions/43715)</sup><sup> • </sup><sup>[22](https://github.com/apache/superset/wiki/Release-Process)</sup>

## References

1. [Welcome | Superset, Apache Superset official site](https://superset.apache.org/)
2. [The Apache Software Foundation Announces Apache Superset as a Top-Level Project, ASF Blog (January 21, 2021)](https://news.apache.org/foundation/entry/the-apache-software-foundation-announces70)
3. [Architecture | Superset 6.1.0 Administrator Documentation](https://superset.apache.org/admin-docs/6.1.0/installation/architecture/)
4. [Index | Superset Documentation](https://superset.apache.org/docs/)
5. [Connecting to Databases | Superset](https://superset.apache.org/docs/databases/)
6. [Async Queries via Celery | Superset](https://superset.apache.org/docs/configuration/async-queries-celery/)
7. [superset/CHANGELOG/6.1.0.md, apache/superset on GitHub](https://github.com/apache/superset/blob/master/CHANGELOG/6.1.0.md)
8. [Next Superset release date, Discussion #43715, apache/superset on GitHub](https://github.com/apache/superset/discussions/43715)
9. [Board history: Superset, Apache Software Foundation](https://apache.org/foundation/board/minutes/Superset.html)
10. [Frequently Asked Questions | Superset](https://superset.apache.org/docs/frequently-asked-questions/)
11. [Frequently Asked Questions | Superset (database support)](https://superset.apache.org/docs/faq/)
12. [Creating Your First Dashboard | Superset](https://superset.apache.org/user-docs/using-superset/creating-your-first-dashboard/)
13. [Embedding Superset | Superset](https://superset.apache.org/user-docs/using-superset/embedding/)
14. [superset-embedded-sdk README, apache/superset on GitHub](https://github.com/apache/superset/blob/master/superset-embedded-sdk/README.md)
15. [Extensions Overview | Superset 6.1.0 Developer Documentation](https://superset.apache.org/developer-docs/6.1.0/extensions/overview/)
16. [Using AI with Superset | Superset 6.1.0](https://superset.apache.org/user-docs/6.1.0/using-superset/using-ai-with-superset/)
17. [Installation Methods | Superset](https://superset.apache.org/docs/installation/installation-methods/)
18. [Securing Your Superset Installation for Production | Superset](https://superset.apache.org/admin-docs/security/securing_superset/)
19. [Why we chose Apache Superset as our data exploration platform, Dropbox.Tech (January 19, 2021)](https://dropbox.tech/application/why-we-chose-apache-superset-as-our-data-exploration-platform)
20. [Węcławski, D., Tomczyk, R., Powroźnik, P. Comparative analysis of selected data visualization methods, JCSI 38 (2026) 19-25](https://ph.pollub.pl/index.php/jcsi/article/download/8369/5363/41806)
21. [Apache Superset vs Metabase, Drafted](https://www.drafted.work/blog/superset-vs-metabase)
22. [Release Process, apache/superset Wiki](https://github.com/apache/superset/wiki/Release-Process)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Databases and data infrastructure

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/apache-superset

English original: https://www.edgepedia.org/apache-superset
