mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
The downloads of query profiles from the profile page contain ':' in the filename, this is not supported by some filesystems such as NTFS. Most browsers replace it with a white-space during the download. Hence, characters except letters and white spaces in downloaded profile's filename should be replaced with '_'. Tests in 'test_web_pages.py' do not need modifications as the endpoint for profile downloads has not changed. Change-Id: Ia170e0ae1adc6f3347b57ca8572d65a05ebf9544 Reviewed-on: http://gerrit.cloudera.org:8080/20215 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
53 lines
1.9 KiB
Cheetah
53 lines
1.9 KiB
Cheetah
{{?__raw__}}{{{profile}}}{{/__raw__}}
|
|
|
|
{{^__raw__}}
|
|
|
|
<!--
|
|
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 }}
|
|
|
|
<br/>
|
|
<div>
|
|
<h4>Download Profile (Available Formats):
|
|
<a style="font-size:16px;" class="btn btn-primary profile-download"
|
|
href="{{ __common__.host-url }}/query_profile_encoded?query_id={{query_id}}"
|
|
download="thrift_profile_{{query_id}}">Thrift</a>
|
|
<a style="font-size:16px;" class="btn btn-primary profile-download"
|
|
href="{{ __common__.host-url }}/query_profile_json?query_id={{query_id}}"
|
|
download="json_profile_{{query_id}}">Json</a>
|
|
<a style="font-size:16px;" class="btn btn-primary profile-download"
|
|
href="{{ __common__.host-url }}/query_profile_plain_text?query_id={{query_id}}"
|
|
download="profile_{{query_id}}">Text</a>
|
|
</h4>
|
|
</div>
|
|
|
|
<pre>{{profile}}</pre>
|
|
|
|
<script>
|
|
$("#profile-tab").addClass("active");
|
|
document.querySelectorAll('.profile-download').forEach(function (profile_link) {
|
|
profile_link.download = profile_link.download.replace(/\W/g,'_');
|
|
});
|
|
</script>
|
|
{{> www/common-footer.tmpl }}
|
|
|
|
{{/__raw__}}
|