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

Nikolay Izhikov commented on IGNITE-14441:
------------------------------------------

I think we should hide only actual values of the query parameters in hiding 
sensitive mode.
The query plan itself is not sensitive info.

So I suggest reusing logic implemented in `IgniteH2Indexing#sqlWithoutConst` in 
`H2QueryInfo#printLogMessage`.

> Query plan printed for long running query must use 
> IGNITE_TO_STRING_INCLUDE_SENSITIVE policy
> --------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-14441
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14441
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>            Reporter: Taras Ledkov
>            Assignee: Taras Ledkov
>            Priority: Major
>             Fix For: 2.11
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Query plan printed for long running query must use 
> IGNITE_TO_STRING_INCLUDE_SENSITIVE policy.
> Now query parameters may be printed in the query plan.



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

Reply via email to