Return error on clickhouse.Open
with protocol HTTP.
#1562
Closed
pashagoose
started this conversation in
Feature requests
Replies: 1 comment
-
Yeah this is easy to forget, it should have returned an error. I was so shocked by this feature gap that I just decided to add it the other weekend. Now we support HTTP in Available in the v2.37.x release |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have noticed that setting protocol HTTP in
clickhouse.Options
does not affect the behaviour: still the connection is being setup with native clickhouse protocol. This may be confusing for users.Especially when they see this error:
[handshake] unexpected packet [72] from server
. I have had this problem when trying to connect to HTTP clickhouse endpoint usingclickhouse.Open(&clickhouse.Options{Protocol: clickhouse.HTTP, ...})
.Is it possible to return error from
clickhouse.Open
which highlights that http is unsupported if it is specified ?links to source code:
http clickhouse protocol: https://github.com/ClickHouse/clickhouse-go/blob/main/clickhouse_options.go#L103
dial function:
clickhouse-go/conn.go
Line 40 in 5ebfd0c
Beta Was this translation helpful? Give feedback.
All reactions