dprmfl commented on code in PR #19231:
URL: https://github.com/apache/druid/pull/19231#discussion_r3456801352


##########
sql/src/main/java/org/apache/druid/sql/avatica/DruidMeta.java:
##########
@@ -804,6 +816,8 @@ private DruidConnection openDruidConnection(
       final Map<String, Object> context
   )
   {
+    String remoteAddress = THREAD_LOCAL_REMOTE_ADDRESS.get();

Review Comment:
   
https://github.com/apache/druid/pull/19231/changes/85eed045b028748729fa618b09e5f1dfd89d0a83
   Fixed by reading THREAD_LOCAL_REMOTE_ADDRESS.get() in the execute paths and 
passing it through DruidJdbcStatement.execute / 
DruidJdbcPreparedStatement.execute / PreparedStatement.execute, so the address 
reflects the actual execute caller rather than the create/prepare caller. PTAL.



-- 
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