Skip to content
Advertisement

Send settings to clickhouse via http protocol using requests

Via clickhouse-client code looks like this:

JavaScript

I am using requests and my code looks like this:

JavaScript

how to pass settings such as

JavaScript

using python-requests?

Advertisement

Answer

It looks like you pass those settings as query parameters and the SQL query in the POST response body, though it seems like you can include that in query params as well.

JavaScript

Give that a shot. I’m getting all this from: https://clickhouse.tech/docs/en/interfaces/http/

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement