[ 
https://issues.apache.org/jira/browse/IMPALA-12426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17821349#comment-17821349
 ] 

ASF subversion and git services commented on IMPALA-12426:
----------------------------------------------------------

Commit 97cd30c607a274d25f5636a21461fc7441d5e63e in impala's branch 
refs/heads/master from jasonmfehr
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=97cd30c60 ]

IMPALA-12426: Workload Management Supporting Changes

Contains several disparate pieces of functionality that support the
overall workload management work.

1. TNetworkAddressComparator
  An unused existing comparator for the Thrift class TNetworkAddress
  already existed in the thrift-util.h file. This comparator has been
  moved to the network-util.h file where it now resides in the same
  place as other utility functions that operator on TNetworkAddress
  instances.

  The existing comparator did not consider the uds address. It only
  considered hostname and port. The new comparator considers all three.

  Testing is accomplished by porting the existing ctests and adding
  additional ctests.

2. StringStreamPop
  This new class extends a std::basic_stringstream<char> to add a
  function that enables removing a character from the end.

  Testing is accomplished using new ctests.

3. Ticker
  This new header-only class notifies a condition variable at periodic
  intervals. It is a lightweight that sleeps until the configured
  duration has passed at which point it wakes up and notifies the
  condition variable. It also enables consumers to offload spurious
  wakeup guards to this class.

  Ctests have been added to test the functionality of this new class.

4. TUniqueId Empty Utility Function
  A new function UUIDEmpty returns true if a provided TUniqueID does
  not contain a UUID or false otherwise.

  Ctests have been added to test this new function.

5. run_clang_tidy.sh
  Additional informational outputs have been added to this script to
  enable tracking the status of the script and to easily identify
  errors found by clang tidy.

6. Summary Util Test
  A ctest was developed for testing the text table generation code that
  generates the exec summary portion of the query profile. This ctest
  was developed as part of an idea that did not ultimately pan out.
  Rather than throwing away that test code, it has been added as a new
  ctest.

Change-Id: Iee23334ec56a18b192a75d052468bf59159b6424
Reviewed-on: http://gerrit.cloudera.org:8080/21048
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> SQL Interface to Completed Queries/DDLs/DMLs
> --------------------------------------------
>
>                 Key: IMPALA-12426
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12426
>             Project: IMPALA
>          Issue Type: New Feature
>          Components: Backend, be
>            Reporter: Jason Fehr
>            Assignee: Jason Fehr
>            Priority: Major
>              Labels: impala, workload-management
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to