[ https://issues.apache.org/jira/browse/DRILL-6185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16379276#comment-16379276 ]
ASF GitHub Bot commented on DRILL-6185: --------------------------------------- GitHub user kkhatua opened a pull request: https://github.com/apache/drill/pull/1137 DRILL-6185: Fixed error while displaying system profiles via the Web-UI The bug lies in the absence of a text plan for profiles related to system queries: e.g. ``` use dfs.tmp; show tables; alter session reset all; ``` This addresses that by ensuring an empty string is substituted and the tokenization is done correctly. You can merge this pull request into a Git repository by running: $ git pull https://github.com/kkhatua/drill DRILL-6185 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/drill/pull/1137.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1137 ---- commit aea75f86a945ea901165458707019edebc0dd91a Author: Kunal Khatua <kkhatua@...> Date: 2018-02-27T20:10:06Z DRILL-6185: Fixed error while displaying system profiles via the Web-UI The bug lies in the absence of a text plan for profiles related to system queries: e.g. {code:sql} use dfs.tmp; show tables; alter session reset all; {code} This addresses that by ensuring an empty string is substituted and the tokenization is done correctly. ---- > Error is displaying while accessing query profiles via the Web-UI > ----------------------------------------------------------------- > > Key: DRILL-6185 > URL: https://issues.apache.org/jira/browse/DRILL-6185 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.13.0 > Reporter: Anton Gozhiy > Assignee: Kunal Khatua > Priority: Blocker > Fix For: 1.13.0 > > > *Steps:* > # Execute the following query: > {code:sql} > show schemas; > {code} > # On the Web-UI, go to the Profiles tab > # Open the profile for the query you executed > *Expected result:* You can access to the profile entry > *Actual result:* Error is displayed: > {code:json} > { > "errorMessage" : "1" > } > {code} > *Note:* This error doesn't happen with every query. For example, "select * > from system.version" can be accessed without error, while "show tables", "use > dfs", "alter sessions" etc end with this error. -- This message was sent by Atlassian JIRA (v7.6.3#76005)