You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/06/13 12:02:39 UTC

[GitHub] [incubator-doris] morningman opened a new pull request, #10101: [improvement] Add new session variable `session_context`

morningman opened a new pull request, #10101:
URL: https://github.com/apache/incubator-doris/pull/10101

   # Proposed changes
   
   Issue Number: close #xxx
   
   ## Problem Summary:
   
   Add a new session variable: `session_context` and it can be set like:
   `set session_context="k1:v1;k2:v2;..."`
   Where `k:v` is key-value pair.
   
   This is used to pass some user-defined or pre-defined session variables from client to server.
   For example, I add a pre-defined key: `trace_id`, And I can use the following stmt:
   ```
   select /*+SET_VAR(session_context=trace_id:123456) */ xxxx from tbl ....;
   ```
   And Doris will get this trace id and saved it in profile. After that, user can use this trace id to get the query id, then
   get some other info (eg, query profile) by query id.
   
   Also, user can pass the trace id to Doris, so that we can monitor Doris's execution in some tracing system.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (Yes/No/I Don't know)
   2. Has unit tests been added: (Yes/No/No Need)
   3. Has document been added or modified: (Yes/No/No Need)
   4. Does it need to update dependencies: (Yes/No)
   5. Are there any changes that cannot be rolled back: (Yes/No)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] morningman closed pull request #10101: [improvement] Add new session variable `session_context`

Posted by GitBox <gi...@apache.org>.
morningman closed pull request #10101: [improvement] Add new session variable `session_context`
URL: https://github.com/apache/doris/pull/10101


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org