Skip to content

Conversation

@jeremydstanton
Copy link

@jeremydstanton jeremydstanton commented Jun 21, 2019

I'm submitting this just to point out that auth (at least the way I understand it) doesn't currently work in the current master branch. Even if you supply a username and password in the JDBC URI the connector appears to ignore them. This has been working for people because by default Clickhouse doesn't require a username and password. In our case, since we require auth the attempt to connect returns the error: user 'default' requires a password.

@captify-ofedorchuk
Copy link

Seems to work, if you downgrade infi.clickhouse-orm==1.0.4

@jeremydstanton
Copy link
Author

Interesting. It looks like it may work if in the connector class send function you use a different request function:
From @georgantasp on our team:```
https://github.com/jeremydstanton/sqlalchemy-clickhouse/blob/66844e6f63a65196b2995bf88f16e3db3f3cfe81/connector.py#L108

should be: 
`r = self.request_session.post(self.db_url, params=params, data=data, stream=stream)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants