Skip to content

Fix/duckdb aliases in get long running queries async#391

Merged
erikdarlingdata merged 13 commits intoerikdarlingdata:devfrom
HannahVernon:fix/duckdb-aliases-in-GetLongRunningQueriesAsync
Mar 2, 2026
Merged

Fix/duckdb aliases in get long running queries async#391
erikdarlingdata merged 13 commits intoerikdarlingdata:devfrom
HannahVernon:fix/duckdb-aliases-in-GetLongRunningQueriesAsync

Conversation

@HannahVernon
Copy link
Contributor

What does this PR do?

Fixes my mistakes with table aliases for DuckDB 🍆🦆📈

Which component(s) does this affect?

  • Full Dashboard
  • [✅] Lite Dashboard
  • Lite Tests
  • SQL collection scripts
  • CLI Installer
  • GUI Installer
  • Documentation

How was this tested?

Lite dashboard app runs without reporting an error while pointed at my local 2019 instance with a query running a tight loop. I'm unsure how else to get the Lite dashboard to run the GetlongRunningQueriesAsync() method.

Checklist

  • [✅] I have read the contributing guide
  • [✅] My code builds with zero warnings (dotnet build -c Debug)
  • [✅] I have tested my changes against at least one SQL Server version
  • [✅] I have not introduced any hardcoded credentials or server names

…_DIAGNOSTIC wait types, and WAITFOR wait types.
…to allow future configurability on the number of long-running queries returned. Added optional parameter to control display of WAITFOR types in future.
…clusions

Feature/long running query exclusions
…c() method. Removed System.Collections.Generic using statement as it is unnecessary.
…KUPTHREAD-to-long-running-queries

Added exclusion for backup-related waits to GetLongRunningQueriesAsync() method.
…dded miscWaitsFilter to exclude XE_LIVE_TARGET_TVF waits. Removed unused parameters. Corrected minimum value for maxLongRunningQueryCount (minimum 1 instead of 5).
…KUPTHREAD-to-long-running-queries

Feature/add exclusion for backupthread to long running queries
…ITFOR, BACKUPTHREAD, BACKUPIO, and XE_LIVE_TARGET_TVF wait types in Lite/Services/LocalDataService.WaitStats.cs
…ries-monitor-changes-to-lite

Added filtering for various wait types to long running query code in Lite.
…arts of the query in Lite/Services/LocalDataService.WaitStats.cs
Copy link
Owner

@erikdarlingdata erikdarlingdata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Verified the query runs clean against DuckDB — no alias errors. The AS r approach and vqs subquery alias are both solid.

@erikdarlingdata erikdarlingdata merged commit 6de3865 into erikdarlingdata:dev Mar 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants