فهرست منبع

HUE-9249 [browser] Add SQL highlighting to Impala query profile

Romain 5 سال پیش
والد
کامیت
5f05bffcfe
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

+ 1 - 1
apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

@@ -1628,7 +1628,7 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
           <pre data-bind="visible:!properties.plan || !properties.plan().plan_json || !properties.plan().plan_json.plan_nodes.length" >${ _('The selected tab has no data') }</pre>
         </div>
         <div class="tab-pane" id="queries-page-stmt${ SUFFIX }" data-profile="plan">
-          <pre data-bind="text: (properties.plan && properties.plan().stmt) || _('The selected tab has no data')"/>
+          <pre data-bind="highlight: { value: (properties.plan && properties.plan().stmt) || _('The selected tab has no data'), formatted: true, dialect: 'impala' }"/>
         </div>
         <div class="tab-pane" id="queries-page-plan-text${ SUFFIX }" data-profile="plan">
           <pre data-bind="text: (properties.plan && properties.plan().plan) || _('The selected tab has no data')"/>