mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-07-02 19:21:32 +08:00
✨ feat(trino): 新增 Trino 可选驱动接入并补齐查询支持
- 后端新增 Trino 数据库实现与 optional driver-agent provider - 前端补齐 catalog.schema 连接配置、URI 解析与能力开关 - SQL 编辑器对 Trino 禁用托管事务并补充前后端测试
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user