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

    https://github.com/apache/drill/pull/685#discussion_r93780471
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/ops/FragmentContext.java ---
    @@ -141,7 +141,7 @@ public FragmentContext(final DrillbitContext dbContext, 
final PlanFragment fragm
         this.accountingUserConnection = new 
AccountingUserConnection(connection, sendingAccountor, statusHandler);
         this.fragment = fragment;
         this.funcRegistry = funcRegistry;
    -    contextInformation = new ContextInformation(fragment.getCredentials(), 
fragment.getContext());
    +    contextInformation = new ContextInformation(fragment.getCredentials(), 
fragment.getContext(), connection.getSession().getSessionId());
    --- End diff --
    
    accessing `connection` results into NPE for non-root fragment contexts.


---
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