FrankChen021 commented on code in PR #13071:
URL: https://github.com/apache/druid/pull/13071#discussion_r990610166
##########
sql/src/main/java/org/apache/druid/sql/avatica/DruidConnection.java:
##########
@@ -127,7 +126,7 @@ public DruidJdbcPreparedStatement createPreparedStatement(
@SuppressWarnings("GuardedBy")
final PreparedStatement statement =
sqlStatementFactory.preparedStatement(
- sqlQueryPlus.withContext(context.copy())
+ sqlQueryPlus.withContext(new HashMap<String, Object>(context))
Review Comment:
No need to make a copy because the ctor of `SqlQueryPlus` always make a copy.
--
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]