Jason Fehr has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/20770


Change subject: IMPALA-12426: Query History Table
......................................................................

IMPALA-12426: Query History Table

Adds the ability for users to specify that Impala creates
and maintains an internal Iceberg table that contains all
completed queries. This table is automatically created at
startup by each coordinator if it does not exist. Then,
each completed query is queued in memory and flushed to the
query history table at a set interval (either minutes or
number of records). This commit leverages the
InternalServer class to maintain the query history table.

Ctest unit tests have been added to assert the various
pieces of code. New custom cluster tests have been added
to assert the query history table is properly populated
with completed queries.

Negative testing consists of attempting sql injection
attacks and syntactically incorrect queries.

Change-Id: I2d2da9d450fba4e789400cfa62927fc25d34f844
---
M be/src/exprs/expr-test.cc
M be/src/exprs/string-functions-ir.cc
M be/src/exprs/string-functions.h
M be/src/runtime/query-driver.cc
M be/src/runtime/query-driver.h
M be/src/service/CMakeLists.txt
M be/src/service/client-request-state.h
M be/src/service/impala-http-handler.cc
M be/src/service/impala-http-handler.h
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M be/src/service/internal-server-test.cc
M be/src/service/internal-server.cc
M be/src/service/internal-server.h
A be/src/service/query-state.cc
A be/src/service/workload-management.cc
M be/src/util/impalad-metrics.cc
M be/src/util/impalad-metrics.h
A be/src/util/ticker.h
M common/function-registry/impala_functions.py
M common/thrift/metrics.json
A tests/custom_cluster/test_query_log.py
A tests/util/retry.py
23 files changed, 2,216 insertions(+), 289 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/70/20770/5
--
To view, visit http://gerrit.cloudera.org:8080/20770
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d2da9d450fba4e789400cfa62927fc25d34f844
Gerrit-Change-Number: 20770
Gerrit-PatchSet: 5
Gerrit-Owner: Jason Fehr <[email protected]>
Gerrit-Reviewer: Andrew Sherman <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>

Reply via email to