Support Amazon Athena as a database engine (query S3 data lakes through Bytebase
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
The issue points to engine packages in bytebase/omni and the existing AWSCredential mechanism used by DynamoDB, but does not name specific files or tests. First read the Trino engine packages and DynamoDB AWS credential implementation, then clarify engine acceptance, plan availability, connection config, and MVP scope with maintainers. Done means an agreed design and working Athena support for the agreed scope, including connection, catalog sync, and read-only SQL queries if the proposed MVP is accepted.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem?
Many teams keep analytical data in Amazon S3 and query it through Amazon Athena, with tables defined in the AWS Glue Data Catalog. Today, Athena access happens outside of Bytebase, through the AWS console, ad-hoc IAM users, or BI tools. So the governance Bytebase gives our other databases (SQL Editor access control, data masking, query audit, review for DDL) doesn't reach the data lake.
Bytebase already supports Trino, but that doesn't cover Athena: Athena speaks the Athena API, not the Trino client protocol, so the Trino driver can't connect to it.
Describe the solution you'd like
Add an ATHENA engine so the path is Bytebase → Athena → S3:
Connection
- Region, plus a workgroup and/or an S3 query result location (
s3://bucket/prefix/). Athena needs one of these for every query. - Authentication through the existing
AWSCredentialIAM extension: access key/secret/session token, the default credential chain (instance profile / IRSA), androle_arn+external_idfor cross-account access. DynamoDB already uses the same mechanism. - Optional Glue Data Catalog name (default
AwsDataCatalog). - Query execution through
StartQueryExecution→ pollingGetQueryExecution→ paginatedGetQueryResults, with cancellation throughStopQueryExecution.
Mapping
- Instance = Athena workgroup/region, database = Glue database, tables/views/columns synced from the Glue Data Catalog (
GetDatabases,GetTables, orinformation_schema).
Scope (suggested MVP)
- Connection test, schema sync, and the SQL Editor (read-only queries) with the existing access control, masking, and audit.
- Then: DDL through issues (
CREATE EXTERNAL TABLE,ALTER TABLE ADD PARTITION,CREATE VIEW), and DML for Iceberg tables (INSERT,UPDATE,DELETE,MERGE). Athena has no transactions, so each statement runs on its own, as with Trino.
Parsing
- Athena engine v3 DML and views use Trino SQL, so the omni
trinoparser could probably be forked or reused, the wayredshiftbuilds onpg. Table DDL follows Hive syntax (CREATE EXTERNAL TABLE ... STORED AS ... LOCATION 's3://...'), which is a gap to check.
Additional context
I'm willing to contribute the implementation. Since engines now live in bytebase/omni (driver, parser, catalog, completion, analysis), I'd like guidance before starting:
- Would the team accept Athena as a new engine, and in which plan should it be available?
- Should it be a fork of omni's
trinopackages (parser/analysis) with its own driver on the AWS SDK (aws-sdk-go-v2/service/athena;aws-sdk-go-v2is already used for RDS IAM, STS, and DynamoDB)? - Should the connection fields (workgroup, output location, catalog) go into
DataSourceas new fields, or into an engine-specific extra config? - Is the MVP scope above (sync + SQL Editor first) reasonable?
References:
- Athena API: https://docs.aws.amazon.com/athena/latest/APIReference/Welcome.html
- Athena engine v3 (Trino-based): https://docs.aws.amazon.com/athena/latest/ug/engine-versions-reference-0003.html
- Athena DDL reference: https://docs.aws.amazon.com/athena/latest/ug/ddl-reference.html
- 主要语言
- TypeScript
- 星标
- 14.8k
- 派生
- 1k
- 平均合并
- 6 小时 56 分钟
- 30 天内合并 PR
- 518
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bytebase/bytebase 的其他 Issue
-
BigQuery schema sync fails when ORDINAL_POSITION is NULL可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
bytebase/bytebase#21217 · 6 条评论 ·
维护者通常 1 天内回复
-
[MariaDB] View SELECT fails with masking resource-not-found error after initially succeeding可能已有人在做 @rebelice 于 3 天前认领。 未关闭Bug Github
难度 4/5 3-5 天 新手友好度 22/100
bytebase/bytebase#22249 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Oracle dump and migration omit identity clauses and index visibility可能已有人在做 @d-bytebase 于 9 天前认领。 未关闭Bug Github
难度 4/5 3-5 天 新手友好度 48/100
bytebase/bytebase#22119 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Feature Github
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
[Bug] ClickHouse: SELECT permission denied on explicitly granted tables, while database-level access works可能已有人在做 @vjsujal 于 3 天前认领。 未关闭
难度 4/5 1-2 天 新手友好度 56/100
bytebase/bytebase#21629 · 2 条评论 ·
维护者通常 1 天内回复
查看 bytebase/bytebase 的全部 Issue
相似的 Issue
-
Flaky test: selecting a portion just after inserting it can also match its Change and Delete buttons未关闭ready-for-agent
难度 2/5 1-3 小时 新手友好度 84/100
linagora/dcs-onlyoffice#172 ·
-
bug follow-up
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
nightly-tests
难度 2/5 1-3 小时 新手友好度 68/100
BlackBeltTechnology/pi-agent-dashboard#1226 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
danielmiessler/LifeOS#3028 ·
维护者通常 5 天内回复
-
execute_sql cannot create a SQLite trigger or a PostgreSQL BEGIN ATOMIC function: the statement is cut at the semicolons inside its body可能已有人在做 @goranai 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复