All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 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

${model.profile.plan}

<#-- DRILL-7697: merge with copy in query.ftl -->

<#if model.isOnlyImpersonationEnabled()>
Hint: Use
to submit
${model.getProfile().query}
    checked> Limit results to rows info     Default schema: info

<#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}
<#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 queued> <#if queued>
State Foreman Total FragmentsTotal Cost Queue
${model.getQueryStateDisplayName()} ${model.getProfile().getForeman().getAddress()} ${model.getProfile().getTotalFragments()}${model.getProfile().getTotalCost()} ${queueName}
<#if queued> <#if queued>
PlanningQueued Execution Total
${model.getPlanningDuration()}${model.getQueuedDuration()} ${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" />

Fragment Profiles

${model.getFragmentsOverview()?no_esc}
<#list model.getFragmentProfiles() as frag>
${frag.getContent()?no_esc}

Operator Profiles

<#if model.hasAutoLimit()>
WARNING: Query result was automatically limited to ${model.getAutoLimit()} rows
${model.getOperatorsOverview()?no_esc}
<#list model.getOperatorProfiles() as op>
${op.getContent()?no_esc}
${op.getMetricsTable()?no_esc}

Full JSON Profile


<#macro list_options options scope> <#if (options?keys?size > 0) >

${scope} Options

<#list options?keys as name>
Name Value
${name} ${options[name]}
<@page_html/>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy