Github user sudheeshkatkam commented on a diff in the pull request:

    https://github.com/apache/drill/pull/685#discussion_r92454190
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/impl/ContextFunctions.java
 ---
    @@ -77,4 +76,28 @@ public void eval() {
           out.buffer = buffer;
         }
       }
    +
    +  /**
    +   * Implement "session_id" function. Returns the unique id of the current 
session.
    +   */
    +  @FunctionTemplate(name = "session_id", scope = 
FunctionTemplate.FunctionScope.SIMPLE)
    +  public static class SessionId implements DrillSimpleFunc {
    +    @Output VarCharHolder out;
    +    @Inject ContextInformation contextInfo;
    +    @Inject DrillBuf buffer;
    +    @Workspace int sessionIdBytesLength;
    +
    +    public void setup() {
    --- End diff --
    
    Annotate with `@Override`, here and below.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to