Closed wallflower closed 3 years ago
Thanks for reporting the issue. From the log you posted, it seems there's parsing issue leading to empty query passed to target database. What was your query on clickhouse? It could also be an issue in jdbc bridge.
Mean time I'll add integration test in clickhouse to prevent this kind of issue from happening again.
I was just doing, the following generic query:
select * from jdbc('', 'show datasources')
There are data sources, and they show up when I revert to 21.4.7.3
Thanks @wallflower. Does a query like select * from jdbc('ds', 'select * from table')
or select * from jdbc('ds', 'table')
work for you? Just trying to understand if all queries are impacted. I'll take a look at the issue today.
Link to Clickhouse/Clickhouse#24467
The queries you provided, give a different and seemingly correct response, as I do not have a ds
datasource.
Running:
select * from jdbc('ds', 'select * from table')
Results in:
SQL Error [86]: ClickHouse exception, code: 86, host: ***.***.com, port: 8123; Code: 86, e.displayText() = DB::Exception: Received error from remote server /columns_info?connection_string=ds&table=select%20%2A%20from%20table&external_table_functions_use_nulls=true. HTTP status code: 500 Internal Server Error, body: NamedDataSource [ds] does not exist! (version 21.5.5.12 (official build))
Thanks again. It's caused by server side changes and I'll try to fix it today.
I am not sure if this should be posted in this repo or the main clickhouse repository (I did post an issue there as well. I will close or the other depending what I hear)?
After upgrading my docker-compose file to the lastest version of clickhouse, the jdbc-bridge no longer works. Every query against it returns the same type of error:
If I downgrade clickhouse to 21.4.7.3 everything works again.
Here is the full stack trace in case it helps:
Here is my docker-compose file: