Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
ghx-label-1
Description
Implement a way of querying (via SQL) information about completed queries/ddls/dmls. Adds coordinator startup flags for users to specify that Impala will track completed queries in an internal table.
Impala will create and maintain an internal Iceberg table named "impala_query_log" in the "system database" 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 either at a set interval (user specified number of minutes) or when a user specified number of completed queries are queued in memory. Partition this table by the hour of the query end time.
Data in this table must match the corresponding data in the query profile. Develop automated testing that asserts this requirement is true.
Don't write use, show, and set queries to this table.
Add the following metrics to the "impala-server" metrics group:
- Number of completed queries queued in memory waiting to be written to the table.
- Number of completed queries successfully written to the table.
- Number of attempts that failed to write completed queries to the table.
- Number of times completed queries were written at the regularly scheduled time.
- Number of times completed queries were written before the scheduled time because the max number of queued records was reached.
Attachments
Issue Links
- causes
-
IMPALA-12660 TSAN error in ImpalaServer::QueryStateRecord::Init
- Resolved
-
IMPALA-12676 UBSAN intermittent int overflow on internal-server-test
- Resolved
-
IMPALA-12944 test_query_log_table_different_table failed in Ozone build
- Resolved
- requires
-
IMPALA-12624 Create a System Database for Impala
- Resolved
1.
|
Remove Usage of "this->" | Closed | Jason Fehr |