mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-14076: Improve readability of workload management query
This patch improve the readability of workload management's insert dml query profiles by: 1. Add a newline between each entry in the VALUES clause. 2. Remove analyzed query from the PLAN column in both tables. For second one, a new query option HIDE_ANALYZED_QUERY is added. If this option is set to True, 'Analyzed query' will not be printed in Plan section of runtime profile. This is helpful for long SQL such as workload management's insert dml query. Testing: - Add explain test case for HIDE_ANALYZED_QUERY option. - Manually run some queries in minicluster with enabled workload management. Confirmed that both improvement happen in DML runtime profile. Change-Id: I30576795dbc2af27a6879684f3757becfd8fc8d0 Reviewed-on: http://gerrit.cloudera.org:8080/23085 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
d41d325b41
commit
c2705fa480
@@ -1033,6 +1033,10 @@ enum TImpalaQueryOptions {
|
||||
// BASE64 - the json binary data is read as base64 encoded string.
|
||||
// RAWSTRING - the json binary data is read as raw string.
|
||||
JSON_BINARY_FORMAT = 192
|
||||
|
||||
// Hide analyzed query from runtime profile. This is useful if query is too large,
|
||||
// such as INSERT INTO with hundreds of VALUES.
|
||||
HIDE_ANALYZED_QUERY = 193
|
||||
}
|
||||
|
||||
// The summary of a DML statement.
|
||||
|
||||
@@ -782,6 +782,9 @@ struct TQueryOptions {
|
||||
// See comment in ImpalaService.thrift
|
||||
193: optional CatalogObjects.TJsonBinaryFormat json_binary_format =
|
||||
TJsonBinaryFormat.NONE;
|
||||
|
||||
// See comment in ImpalaService.thrift
|
||||
194: optional bool hide_analyzed_query = false
|
||||
}
|
||||
|
||||
// Impala currently has three types of sessions: Beeswax, HiveServer2 and external
|
||||
|
||||
Reference in New Issue
Block a user