xvrl commented on code in PR #13281:
URL: https://github.com/apache/druid/pull/13281#discussion_r1009675268


##########
sql/src/main/java/org/apache/druid/sql/avatica/DruidConnection.java:
##########
@@ -97,7 +97,7 @@ public DruidJdbcStatement createStatement(SqlStatementFactory 
sqlStatementFactor
       final DruidJdbcStatement statement = new DruidJdbcStatement(
           connectionId,
           statementId,
-          context,
+          context.copy(),

Review Comment:
   a comment might be useful here



##########
sql/src/main/java/org/apache/druid/sql/avatica/DruidConnection.java:
##########
@@ -127,7 +127,7 @@ public DruidJdbcPreparedStatement createPreparedStatement(
 
       @SuppressWarnings("GuardedBy")
       final PreparedStatement statement = 
sqlStatementFactory.preparedStatement(
-          sqlRequest.withContext(context)
+          sqlQueryPlus.withContext(context.copy())

Review Comment:
   same here



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to