sohami commented on a change in pull request #1703: DRILL-7110: Skip writing 
profile when an ALTER SESSION is executed
URL: https://github.com/apache/drill/pull/1703#discussion_r267424096
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java
 ##########
 @@ -785,8 +785,8 @@ public void close() throws Exception {
 
       // Debug option: write query profile before sending final results so that
       // the client can be certain the profile exists.
-
-      if (profileOption == ProfileOption.SYNC) {
+      boolean skipProfileWrite = queryContext.isSkipProfileWrite();
 
 Review comment:
   use `final`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to