Skip to content

Add taegis query command for Query Relay SQL queries #133

Description

@vividhsv

Problem description: Taegis Magic has no CLI command for submitting SQL queries via Query Relay (submit -> poll for completion -> paginate results). This adds a taegis query command that wraps executeQueryRelay / fetchQueryRelayResults.

Problem location: New file taegis_magic/commands/query_relay.py; registered in taegis_magic/cli.py.

Suggested resolution: Add the command, and correctly check QueryRelayResponse.error on the submission response - the current SDK contract can reject a query at submission time (e.g. invalid SQL), and the client needs to surface that immediately rather than proceeding to poll with a dead token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions