Github user arina-ielchiieva commented on a diff in the pull request:

    https://github.com/apache/drill/pull/551#discussion_r85943937
  
    --- Diff: exec/java-exec/src/main/resources/rest/profile/profile.ftl ---
    @@ -107,6 +107,42 @@
       <p>FOREMAN: ${model.getProfile().getForeman().getAddress()}</p>
       <p>TOTAL FRAGMENTS: ${model.getProfile().getTotalFragments()}</p>
     
    +  <#if (model.getOptionList()?size > 0)>
    +    <div class="page-header"></div>
    +    <h3>Session Options</h3>
    +    <div class="panel-group" id="session-options-accordion">
    +      <div class="panel panel-default">
    +        <div class="panel-heading">
    +          <h4 class="panel-title">
    +            <a data-toggle="collapse" href="#session-options-overview">
    +              Overview
    +            </a>
    +          </h4>
    +        </div>
    +        <div id="session-options-overview" class="panel-collapse collapse 
in">
    +          <div class="panel-body">
    +            <table class="table table-bordered">
    +              <thead>
    +                <tr>
    +                  <th>Name</th>
    +                  <th>Value</th>
    +                </tr>
    +              </thead>
    +              <tbody>
    +                <#list model.getOptionList() as option>
    +                  <tr>
    +                    <td>${option.getName()}</td>
    +                    <td>${option.getValue()?c}</td>
    --- End diff --
    
    Since org.apache.drill.exec.server.options.OptionValue.getValue() returns 
Object, Freemarker built-in c is used to convert Object to string.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to