MCPcopy Create free account
hub / github.com/bytebase/bytebase / getStatementWithResultLimit

Function getStatementWithResultLimit

backend/plugin/db/clickhouse/query.go:105–107  ·  view source on GitHub ↗
(statement string, limit int)

Source from the content-addressed store, hash-verified

103}
104
105func getStatementWithResultLimit(statement string, limit int) string {
106 return fmt.Sprintf("WITH result AS (%s) SELECT * FROM result LIMIT %d;", util.TrimStatement(statement), limit)
107}
108
109// translateAggregateFunctionError rewrites the clickhouse-go driver's opaque
110// "unsupported column type \"AggregateFunction(...)\"" error into actionable

Callers 1

QueryConnMethod · 0.70

Calls 1

TrimStatementFunction · 0.92

Tested by

no test coverage detected