Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: query uuid type (#16601)

ecmadao3325ebcf0339
diff --git a/backend/plugin/db/clickhouse/query.go b/backend/plugin/db/clickhouse/query.go
index 1e0668284b..43522a3ee1 100644
--- a/backend/plugin/db/clickhouse/query.go
+++ b/backend/plugin/db/clickhouse/query.go
@@ -103,7 +103,7 @@ func getStatementWithResultLimit(statement string, limit int) string {
}
func makeValueByTypeName(typeName string, columnType *sql.ColumnType) any {
- if strings.HasPrefix(typeName, "TUPLE") || strings.HasPrefix(typeName, "ARRAY") || strings.HasPrefix(typeName, "MAP") {
+ if typeName == "UUID" || strings.HasPrefix(typeName, "TUPLE") || strings.HasPrefix(typeName, "ARRAY") || strings.HasPrefix(typeName, "MAP") {
// For TUPLE, ARRAY, MAP type in ClickHouse, we pass any and the driver will do the rest.
var it any
return &it