Skip to content

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

chore: no validate for explains (#13297)

Danny Xu9d1e9cb71b11
diff --git a/backend/api/v1/sql_service.go b/backend/api/v1/sql_service.go
index 841bf42016..414532b39c 100644
--- a/backend/api/v1/sql_service.go
+++ b/backend/api/v1/sql_service.go
@@ -722,8 +722,10 @@ func (s *SQLService) Query(ctx context.Context, request *v1pb.QueryRequest) (*v1
}
// Validate the request.
- if err := validateQueryRequest(instance, statement); err != nil {
- return nil, err
+ if !request.Explain {
+ if err := validateQueryRequest(instance, statement); err != nil {
+ return nil, err
+ }
}
// Get query span.