mirror of
https://github.com/apache/impala.git
synced 2025-12-19 09:58:28 -05:00
This change corrects the improper rendering of nanosecond walltime event timestamps in the text profile section of imported query profiles. The timestamps are now displayed in minutes and seconds, instead of being displayed in date format. (i.e. 2s120ms, 2ms498us) The navbar rendering from incorrect declaration in webUI ES6 refactor IMPALA-13389 has also been corrected. Incorrectly added columns "Coordinator Slots" and "Executor Slots" in IMPALA-13726: Add admission control slots to /queries page in webui have been removed from the imported query profile section. Change-Id: Id1ad10f469aec085e5b485b4c20d6ab89fe58034 Reviewed-on: http://gerrit.cloudera.org:8080/23067 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
69 lines
2.2 KiB
Cheetah
69 lines
2.2 KiB
Cheetah
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
{{> www/common-header.tmpl }}
|
|
|
|
{{> www/query_detail_tabs.tmpl }}
|
|
|
|
<pre id="query_plan">{{plan}}</pre>
|
|
|
|
<script type="module">
|
|
$("#plan-text-tab").addClass("active");
|
|
|
|
import {inflateParseJSON}
|
|
from "{{ __common__.host-url }}/www/scripts/compression_util.js";
|
|
|
|
const db_open_req = indexedDB.open("imported_queries");
|
|
let db;
|
|
|
|
const supported_tabs = ["Query", "Timeline", "Text plan", "Profile"];
|
|
|
|
if (window.location.search.includes("imported")) {
|
|
const alert_message = document.getElementsByClassName("alert alert-danger")[0];
|
|
if (alert_message) {
|
|
alert_message.remove();
|
|
}
|
|
let nav_links = document.getElementsByClassName("nav nav-tabs")[0];
|
|
nav_links = nav_links.getElementsByClassName("nav-link");
|
|
for (let i = 0; i < nav_links.length;) {
|
|
if (supported_tabs.includes(nav_links[i].textContent)) {
|
|
nav_links[i].href = `${nav_links[i].href}&imported=true`;
|
|
i++;
|
|
} else {
|
|
nav_links[i].parentElement.remove();
|
|
}
|
|
}
|
|
|
|
db_open_req.onsuccess = (e) => {
|
|
db = e.target.result;
|
|
db.onerror = (e) => {
|
|
console.log("IndexedDB error");
|
|
console.log(e);
|
|
}
|
|
const profile_store = db.transaction("profiles", "readonly").objectStore("profiles");
|
|
profile_store.get(getQueryID()).onsuccess = (e) => {
|
|
query_plan.textContent = inflateParseJSON(e.target.result.profile).contents
|
|
.child_profiles[0].info_strings.find(({key}) => key === "Plan").value;
|
|
};
|
|
};
|
|
}
|
|
</script>
|
|
|
|
{{> www/common-footer.tmpl }}
|