Michael Smith has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/24711 )

Change subject: IMPALA-15234: Add a way to clear the HBO cache
......................................................................

IMPALA-15234: Add a way to clear the HBO cache

Add :clear_hbo_stats() using the existing admin statement framework.
With authorization enabled, the command requires ALL privilege on the
server. No SQL grammar changes are needed.

Call CacheBackend.clear() through JNI. The in-memory backend clears
the cache on the coordinator handling the command. A shared backend
can provide a wider scope through the same interface.

The clear removes entries currently stored in the cache. It does not
serialize concurrent writers, so queries can store runs after it
returns.

Tests cover clearing populated and empty caches, command analysis,
server-level privileges, and removal of HBO estimates in EXPLAIN.

Change-Id: Ib58305e96f05ba49eb03d935765620915964308a
Assisted-by: claude-opus-5 (Claude Code); gpt-6-astra (OpenAI Codex)
Reviewed-on: http://gerrit.cloudera.org:8080/24711
Reviewed-by: Quanlong Huang <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
Reviewed-by: Michael Smith <[email protected]>
---
M be/src/service/client-request-state.cc
M be/src/service/frontend.cc
M be/src/service/frontend.h
M common/thrift/Frontend.thrift
M fe/src/main/java/org/apache/impala/analysis/AdminFnStmt.java
M fe/src/main/java/org/apache/impala/service/CacheBackend.java
M fe/src/main/java/org/apache/impala/service/HistoricalStats.java
M fe/src/main/java/org/apache/impala/service/InMemoryCacheBackend.java
M fe/src/main/java/org/apache/impala/service/JniFrontend.java
M fe/src/test/java/org/apache/impala/analysis/AnalyzeStmtsTest.java
M fe/src/test/java/org/apache/impala/authorization/AuthorizationStmtTest.java
A fe/src/test/java/org/apache/impala/service/InMemoryCacheBackendTest.java
M tests/query_test/test_hbo.py
13 files changed, 163 insertions(+), 5 deletions(-)

Approvals:
  Quanlong Huang: Looks good to me, but someone else must approve
  Impala Public Jenkins: Verified
  Michael Smith: Looks good to me, approved

--
To view, visit http://gerrit.cloudera.org:8080/24711
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ib58305e96f05ba49eb03d935765620915964308a
Gerrit-Change-Number: 24711
Gerrit-PatchSet: 10
Gerrit-Owner: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Aleksandr Efimov <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Joe McDonnell <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>

Reply via email to