Skip to content

feat: Expose Query Warnings (issues) in Client Response #1872

@kprokopenko

Description

@kprokopenko

Is your feature request related to a problem? Please describe.

Currently, the QueryService.ExecuteQuery response includes an issues field containing YDB warnings (e.g., Symbol $param is not used). These warnings provide valuable diagnostic information but are currently inaccessible to the user of the ydb-go-sdk. This lack of visibility means developers miss potential optimizations or insights into query execution that the YDB server is providing.

Describe the solution you'd like
Pass a callback WithIssuesHandler(func(issues []*Ydb_Issue.IssueMessage) to Query(), Exec() (and theirs Session and transaction analogs) methods. WithIssuesHandler should implement query.ExecuteOption interface.

Additional context

  • Example of a useful warning: Symbol $unused_param is not used.
  • These are warnings, not errors. The query succeeds, but the server has valuable feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions