feat(trino): 新增 Trino 可选驱动接入并补齐查询支持

- 后端新增 Trino 数据库实现与 optional driver-agent provider
- 前端补齐 catalog.schema 连接配置、URI 解析与能力开关
- SQL 编辑器对 Trino 禁用托管事务并补充前后端测试
This commit is contained in:
Syngnat
2026-06-21 13:54:42 +08:00
parent 99b75378c3
commit 8ea7ecc477
35 changed files with 1234 additions and 42 deletions

View File

@@ -193,6 +193,24 @@ func TestNormalizeSchemaAndTableByType_RabbitMQPreservesDottedQueueName(t *testi
}
}
func TestNormalizeSchemaAndTableByType_TrinoPreservesDottedTableName(t *testing.T) {
t.Parallel()
schema, table := normalizeSchemaAndTableByType("trino", "hive.default", "orders.events.v1")
if schema != "hive.default" || table != "orders.events.v1" {
t.Fatalf("expected trino table name to stay intact, got %q.%q", schema, table)
}
}
func TestQuoteTableIdentByType_TrinoKeepsCatalogSchemaAndDottedTable(t *testing.T) {
t.Parallel()
got := quoteTableIdentByType("trino", "hive.default", "orders.events.v1")
if got != `"hive"."default"."orders.events.v1"` {
t.Fatalf("unexpected trino quoted table: %s", got)
}
}
func TestBuildRunConfigForDDL_CustomHighGoUsesDatabase(t *testing.T) {
t.Parallel()