FrankChen021 commented on code in PR #13071:
URL: https://github.com/apache/druid/pull/13071#discussion_r990609934
##########
sql/src/main/java/org/apache/druid/sql/avatica/DruidConnection.java:
##########
@@ -97,7 +96,7 @@ public DruidJdbcStatement createStatement(SqlStatementFactory
sqlStatementFactor
final DruidJdbcStatement statement = new DruidJdbcStatement(
connectionId,
statementId,
- context.copy(),
+ new HashMap<String, Object>(context),
Review Comment:
Can we move the copy into the ctor of `DruidJdbcStatement` so that no one
forgets to 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]