xiangfu0 opened a new pull request, #18649: URL: https://github.com/apache/pinot/pull/18649
## Summary Adds query progress reporting for long-running Pinot queries across the broker, controller, server, V1 execution, V2 execution, query console, and Pinot CLI. The progress model reports processed work units over total work units. V1 uses server segment progress; V2 estimates work from multi-stage operators and stage execution progress. The controller exposes progress by `clientQueryId`, the query console polls it while a query is running, and the CLI can poll and render a single-line progress bar for interactive terminals. ## User impact - Query console now shows numeric query progress while a query is in `RUNNING` state. - `pinot-cli` supports `--progress-interval-ms` and config key `progress-interval-ms`. - CLI progress is disabled with `--progress-interval-ms=0` and is only rendered for interactive terminals, so redirected output/logs stay clean. - README includes usage notes and V1/V2 quickstart sample queries. ## Notes The CLI injects a generated `clientQueryId` as a quoted query option so progress polling can correlate the client request with running query state. ## Validation - `./mvnw -pl pinot-controller,pinot-clients/pinot-cli -am -DskipTests -DskipITs -Dmaven.javadoc.skip=true compile` - `./mvnw -pl pinot-spi -Dtest=QueryProgressStatsTest test` - `./mvnw -pl pinot-query-runtime -am -Dtest=OpChainSchedulerServiceTest -Dsurefire.failIfNoSpecifiedTests=false test` - `./mvnw -pl pinot-core -am -Dtest=InstanceRequestHandlerTest -Dsurefire.failIfNoSpecifiedTests=false test` - `./mvnw -pl pinot-clients/pinot-cli -DskipTests -DskipITs -Dmaven.javadoc.skip=true package` - `spotless:apply`, `license:format`, `license:check`, and `checkstyle:check` on affected modules - `git diff --check` - Local quickstart smoke test with query console and Pinot CLI progress query -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
