Cumulative user memory in WebUI can display negative number for queries with very large memory consumption.
Contributor guide
Tech stack
javajavascript
Domain
frontendbackend
Issue type
bug
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
3
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
half day
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
fresh
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
clear
Prerequisites
Basic Java knowledgeUnderstanding of Web UI development
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
50
Research direction
Investigate the WebUI component that displays cumulative user memory, likely in the JavaScript frontend. Look for the API endpoint fetching memory metrics from the backend, possibly in a Trino coordinator REST controller. The issue shows negative values for large memory consumption, suggesting an integer overflow or type conversion problem. Check the data type used for memory values in both backend (Java long vs unsigned) and frontend (JavaScript number). Review relevant files like trino web ui/src/ or similar directories.