Skip to content

[BUG] execute_ppl_query context provider tool returns 200 OK despite query validation errors #10616

@goyamegh

Description

@goyamegh

Describe the bug

The execute_ppl_query tool shows 200 OK status even when the PPL query fails with validation or syntax errors. This creates a misleading success indication in the UI while the query actually failed.

Expected behavior

The API should return an appropriate error status code and feed the information about query failures by passing as context (opened separately #10615 )

Actual behavior

  • UI shows "Invalid Query" error state
  • Assistant shows tool execution as "completed" despite failure

Screenshots

Image

Proposed Solution

Return

Labels

bug, api, observability, logs, query-language, error-handling

Metadata

Metadata

Assignees

Labels

aiChanges related to AI chat, context provider and artifactbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions