elcamlost / perl-DBD-ClickHouse

Other
13 stars 7 forks source link

Not working with CH v.23.10.5.20 #9

Open evengar2008 opened 11 months ago

evengar2008 commented 11 months ago

Not working with CH v.23.10.5.20

After updating CH server from v.20.7.2.30 to v.23.10.5.20, the library stopped working with CH

ClickHouse error: Not Found (There is no handle http://clickhouse-stage.***:8123/?database=default&user=referral&password=***&query=%0A++++SELECT%[...]

    SELECT
        count(*)
    FROM
        ***
     at /usr/local/share/perl/5.30.0/ClickHouse.pm line 229.
evengar2008 commented 11 months ago

The library seems to be sending the host in the query params.

e.g., it's sending a request like

'http://clickhouse.some/http://clickhouse.some/?database=x`

GithubUser5462 commented 11 months ago

I am experiencing the same issue, is there any way to fix it?

elcamlost commented 11 months ago

I'll try my best to take a look into this issue in a week, but no promises. Unfortunately, I'm pretty busy right now. But fell free to submit a PR.

evengar2008 commented 11 months ago

Sure, will do

evengar2008 commented 11 months ago

Here's the PR https://github.com/elcamlost/perl-DBD-ClickHouse/pull/10