rest.profile.profile.ftl Maven / Gradle / Ivy
<#--
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.
-->
<#include "*/generic.ftl">
<#macro page_head>
#macro>
<#macro page_body>
<#include "*/alertModals.ftl">
<#include "*/runningQuery.ftl">
Query and Planning
${model.getProfile().query}
<#if model.hasAutoLimit()>
WARNING: Query result was automatically limited to ${model.getAutoLimit()} rows
#if>
${model.profile.plan}
<#-- DRILL-7697: merge with copy in query.ftl -->
<#include "*/runningQuery.ftl">
<#if model.hasError()>
${model.getProfile().error?trim}
Failure node: ${model.getProfile().errorNode}
Error ID: ${model.getProfile().errorId}
Verbose Error Message
${model.getProfile().verboseError?trim}
#if>
<#assign queueName = model.getProfile().getQueueName() />
<#assign queued = queueName != "" && queueName != "-" />
Query Profile: ${model.getQueryId()}
<#if model.getQueryStateDisplayName() == "Prepared" || model.getQueryStateDisplayName() == "Planning" || model.getQueryStateDisplayName() == "Enqueued" || model.getQueryStateDisplayName() == "Starting" || model.getQueryStateDisplayName() == "Running">
#if>
State
Foreman
Total Fragments
<#if queued>
Total Cost
Queue
#if>
${model.getQueryStateDisplayName()}
${model.getProfile().getForeman().getAddress()}
${model.getProfile().getTotalFragments()}
<#if queued>
${model.getProfile().getTotalCost()}
${queueName}
#if>
Planning
<#if queued>
Queued
#if>
Execution
Total
${model.getPlanningDuration()}
<#if queued>
${model.getQueuedDuration()}
#if>
${model.getExecutionDuration()}
${model.getProfileDuration()}
<#assign sessionOptions = model.getSessionOptions()>
<#assign queryOptions = model.getQueryOptions()>
<#if (sessionOptions?keys?size > 0 || queryOptions?keys?size > 0) >
Options
<@list_options options=sessionOptions scope="Session" />
<@list_options options=queryOptions scope="Query" />
#if>
Fragment Profiles
${model.getFragmentsOverview()?no_esc}
<#list model.getFragmentProfiles() as frag>
${frag.getContent()?no_esc}
#list>
Operator Profiles
<#if model.hasAutoLimit()>
WARNING: Query result was automatically limited to ${model.getAutoLimit()} rows
#if>
${model.getOperatorsOverview()?no_esc}
<#list model.getOperatorProfiles() as op>
${op.getContent()?no_esc}
${op.getMetricsTable()?no_esc}
#list>
Full JSON Profile
#macro>
<#macro list_options options scope>
<#if (options?keys?size > 0) >
${scope} Options
Name
Value
<#list options?keys as name>
${name}
${options[name]}
#list>
#if>
#macro>
<@page_html/>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy