Compare commits

...

1 commit

Author SHA1 Message Date
Claude
b67fdeff53
Expose SQL queries in log explorer and widget details
Added functionality to display the generated SQL queries alongside KQL queries:

- Modified selectLogTable to return the generated SQL query along with results
- Updated log explorer to display SQL query in a collapsible "Show generated SQL" section
- Added SQL query to ApiLogsPageData for passing to UI components
- Updated AI.hs and bot utilities to handle the new return type (4-tuple instead of 3-tuple)
- Widget expanded details already had SQL preview via widgetSqlPreviewGetH endpoint
- Widget menu already has "Copy SQL" button alongside "Copy KQL" button

The SQL query is now visible in:
1. Log Explorer - collapsible details section below query box with copy button
2. Widget expanded details - existing "Show generated SQL" section
3. Widget menu - existing "Copy SQL" option

This helps users understand the actual SQL being executed from their KQL queries
for debugging and learning purposes.
2026-01-13 03:03:23 +00:00
4 changed files with 25 additions and 7 deletions