Github user arina-ielchiieva commented on a diff in the pull request: https://github.com/apache/drill/pull/685#discussion_r93205867 --- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/ops/ContextInformation.java --- @@ -28,12 +29,14 @@ private final String currentDefaultSchema; private final long queryStartTime; private final int rootFragmentTimeZone; + private final String sessionId; - public ContextInformation(final UserCredentials userCredentials, final QueryContextInformation queryContextInfo) { + public ContextInformation(final UserCredentials userCredentials, final UserSessionContextInformation sessionContextInfo, final QueryContextInformation queryContextInfo) { this.queryUser = userCredentials.getUserName(); this.currentDefaultSchema = queryContextInfo.getDefaultSchemaName(); this.queryStartTime = queryContextInfo.getQueryStartTime(); this.rootFragmentTimeZone = queryContextInfo.getTimeZone(); + this.sessionId = sessionContextInfo.getSessionId(); --- End diff -- If user didn't set sessionContextInfo in builder, we'll get NPE?
--- 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. ---