-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom socket factory #1400
Add support for custom socket factory #1400
Conversation
@zhicwu I attempted this PR to add support for custom socket factory. Please review the approach and advise for any changes. Thank you! |
8ec7710
to
fdb56ef
Compare
Thank you @mayankvadariya for the pull request! Just some immediate feedback I can think of:
|
fdb56ef
to
beb77c3
Compare
|
Assume we're using DBeaver, when loading a class, I was thinking maybe it's better to start with the context class loader.
Good point. Perhaps we just need an extra field in ClickHouseConfig for unknown properties. Will make some changes this weekend. |
@zhicwu Did you get any chance to add extra config for getting unknown properties? |
@zhicwu we are waiting on this to get merged at the earliest. Do you have any timeline on when this PR might get merged? |
@zhicwu any progress on the blocker here? |
Hi @anusudarsan, sorry for the delay. I had meeting with ClickHouse team on Monday - we'll gradually drop gRPC client but keep it for now. I'll fix CI issue and get back to this tonight. |
@zhicwu any progress on it? |
@zhicwu Checking for the progress on the blockers. |
Sorry for being super lazy - I was focusing on something else 😂 The initial CI failure has been addressed, but this PR is still failing compilation likely due to moving classes to the http client module. Regarding supporting unknown properties, I plan to complete that this weekend along with two other changes:
|
beb77c3
to
c9f0142
Compare
Thanks @zhicwu for checking. I replaced string.formatted with string.format as the CI builds with java8. Please trigger the workflow again. |
Hi @mayankvadariya, over the weekend, I gave this some thought and believe it would be better to create a generic interface to define custom socket factories. This would allow support for not just Apache HTTP Client but other implementations as well. I've created a separate PR for this approach - see #1420. Please let me know if you have any concerns with this proposal. |
Close as this will be implemented in #1420. |
Summary
#1391 - Attempt to inject a custom socket factory with
APACHE_HTTP_CLIENT
connection provider.Checklist
Delete items not relevant to your PR: