Skip to content

[feature](query process) show more query process stats in show current_queries#62484

Open
yiguolei wants to merge 9 commits intoapache:masterfrom
yiguolei:f2
Open

[feature](query process) show more query process stats in show current_queries#62484
yiguolei wants to merge 9 commits intoapache:masterfrom
yiguolei:f2

Conversation

@yiguolei
Copy link
Copy Markdown
Contributor

@yiguolei yiguolei commented Apr 14, 2026

What problem does this PR solve?

mysql> show proc "/current_queries" \G;
*************************** 1. row ***************************
QueryId: ad38a0b9e824336-9a60250515fe3c39
ConnectionId: 10
Catalog: internal
Database: clickbench
User: root
ExecTime: 2391
SqlHash: ba81c7d646d0c809fb152eaef954ca4a
Statement: SELECT h1.UserID, h2.SearchPhrase, COUNT() AS cnt, SUM(length(h1.URL)) AS total_url_len, AVG(h2.WindowClientWidth) AS avg_duration, NDV(h1.OriginalURL) AS unique_ip FROM hits h1 JOIN hits h2 ON h1.UserID = h2.UserID AND h1.EventDate != h2.EventDate AND h1.URL != h2.URL GROUP BY h1.UserID, h2.SearchPhrase HAVING COUNT() > 10 ORDER BY cnt DESC, total_url_len DESC LIMIT 1000
ScanRows: 24149849 Rows
ScanBytes: 3.54 GB
ReturnedRows: 0 Rows
CpuMs: -103927254
MaxPeakMemoryBytes: 9.38 GB
CurrentUsedMemoryBytes: 0.00
WorkloadGroupId: 0
ShuffleSendBytes: 0.00
ShuffleSendRows: 0 Rows
ScanBytesFromLocalStorage: 822.24 MB
ScanBytesFromRemoteStorage: 0.00
SpillWriteBytesToLocalStorage: 0.00
SpillReadBytesFromLocalStorage: 0.00
BytesWriteIntoCache: 0.00
1 row in set (0.01 sec)

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen
Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

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