[ 
https://issues.apache.org/jira/browse/HIVE-22550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17267828#comment-17267828
 ] 

Zoltan Haindrich commented on HIVE-22550:
-----------------------------------------

I think the original intention was to make the query string more resilient to 
displaying it incorrectly .
The escaped version is a bit less readable on the yarn ui.

just for fun what happens if we don't escape and send something like:
{code}
select '<b>asd</b>' 
{code}

> Result of hive.query.string in job xml contains  encoded string
> ---------------------------------------------------------------
>
>                 Key: HIVE-22550
>                 URL: https://issues.apache.org/jira/browse/HIVE-22550
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 3.1.0, 3.1.1
>            Reporter: zhangbutao
>            Assignee: zhangbutao
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-branch-3.1.patch, job xml.JPG
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> repo:
> Query :  *insert into test values(1)*
> job xml will be display *insert+into+test+values%281%29*
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to