Skip to content

Conversation

@BohuTANG
Copy link
Member

@BohuTANG BohuTANG commented Sep 18, 2025

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

During long-running SQL queries, the HTTP query handler repeatedly logs empty pages with rows=0, creating excessive log noise. This PR addresses the issue by only logging meaningful events.

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Other

This change is Reviewable

During long-running SQL queries, the system repeatedly logs empty pages
with rows=0 which creates excessive log noise. This change only logs
non-empty pages and final completion status.

Changes:
- Skip logging empty pages (rows=0) during query execution
- Only log when pages contain actual data (rows>0)
- Log final completion status when query ends with empty page
- Preserve all error and cleanup logs for debugging

This significantly reduces log volume while maintaining visibility
into actual data processing and query completion.
@github-actions github-actions bot added the pr-bugfix this PR patches a bug in codebase label Sep 18, 2025
@BohuTANG BohuTANG merged commit 599c715 into main Sep 18, 2025
102 of 109 checks passed
@BohuTANG BohuTANG deleted the fix/reduce-spill-logs branch September 18, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix this PR patches a bug in codebase

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants