Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Feature/clickhouse connector #1090

Merged

Conversation

MahmoudElhalwany
Copy link
Contributor

@netlify
Copy link

netlify bot commented Aug 23, 2022

Deploy Preview for frontend-sb canceled.

Name Link
🔨 Latest commit c3f9350
🔍 Latest deploy log https://app.netlify.com/sites/frontend-sb/deploys/630dec27e7526200089a1c34

Copy link
Contributor

@Samyak2 Samyak2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @MahmoudElhalwany, thank you very much for your contribution! This looks great overall and everything seems to be working (I tested on a local clickhouse set up). The icon is good too.

That said, I had a few comments and questions on the changes. Please find them below.

chaos_genius/third_party/integration_server_config.py Outdated Show resolved Hide resolved
chaos_genius/third_party/data_connection_config.json Outdated Show resolved Hide resolved
chaos_genius/connectors/clickhouse.py Outdated Show resolved Hide resolved
chaos_genius/utils/metadata_api_config.py Outdated Show resolved Hide resolved
requirements/prod.txt Outdated Show resolved Hide resolved
@Samyak2 Samyak2 requested a review from manassolanki August 25, 2022 13:32
Copy link
Contributor

@Samyak2 Samyak2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

It would be helpful if you could show the error you got when trying the native client. I'll try it from my side too.

@MahmoudElhalwany
Copy link
Contributor Author

Looks great!

It would be helpful if you could show the error you got when trying the native client. I'll try it from my side too.

Okay, but there is a potential bug too there is some datatypes in ClickHouse not supported in the library and in python like Int128

@Samyak2 Samyak2 linked an issue Aug 29, 2022 that may be closed by this pull request
@Samyak2
Copy link
Contributor

Samyak2 commented Aug 29, 2022

there is some datatypes in ClickHouse not supported in the library and in python like Int128

Looks like there is an open PR for this: xzkostyan/clickhouse-sqlalchemy#184

Is this something that is necessary for your usecase?


Did you find any bugs specific to the native interface/connector?

@MahmoudElhalwany
Copy link
Contributor Author

there is some datatypes in ClickHouse not supported in the library and in python like Int128

Looks like there is an open PR for this: xzkostyan/clickhouse-sqlalchemy#184

Is this something that is necessary for your usecase?

Did you find any bugs specific to the native interface/connector?

@Samyak2
I just have some tables that use Int128 in their columns, it gives me errors when I choose that database when initialization.
for native bugs -- until now, No. So, we can change it to native.
Did you find any bugs using the native ??

@Samyak2
Copy link
Contributor

Samyak2 commented Aug 30, 2022

I just have some tables that use Int128 in their columns, it gives me errors when I choose that database when initialization.

Oh I see. By initialization do you mean adding the data source? Or is this after adding the KPI?

for native bugs -- until now, No. So, we can change it to native.
Did you find any bugs using the native ??

No, the native connector works for me too. Although, I had to change the port to 9000 instead of 8123 for HTTP.

@MahmoudElhalwany
Copy link
Contributor Author

I just have some tables that use Int128 in their columns, it gives me errors when I choose that database when initialization.

Oh I see. By initialization do you mean adding the data source? Or is this after adding the KPI?

for native bugs -- until now, No. So, we can change it to native.
Did you find any bugs using the native ??

No, the native connector works for me too. Although, I had to change the port to 9000 instead of 8123 for HTTP.

so should I change the https to native or u gonna change it ?

@Samyak2
Copy link
Contributor

Samyak2 commented Aug 30, 2022

I'll do it

@Samyak2 Samyak2 added 🔗 connectors DB, DW & third party connectors 📎 needs docs update A PR that requires updating the docs (https://github.com/chaos-genius/chaosgenius-docs) labels Aug 30, 2022
Copy link
Contributor

@Samyak2 Samyak2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you for contributing this connector. I'm sure the community will benefit greatly from this.

We'll update clickhouse-sqlalchemy to the next version which will likely include the fixes for Int128 when it's released.

@MahmoudElhalwany
Copy link
Contributor Author

hich will likely include the fixes for Int128 when it's relea

thanks -- this is my first real contribution to open source project -- so I must make it an anniversary 😄

@Samyak2 Samyak2 changed the base branch from main to develop August 30, 2022 11:01
@Samyak2 Samyak2 merged commit a8053d4 into chaos-genius:develop Aug 30, 2022
@Samyak2 Samyak2 added this to the v0.11.0 milestone Aug 30, 2022
@Samyak2 Samyak2 modified the milestones: v0.11.0, v0.10.2 Sep 7, 2022
@Samyak2 Samyak2 mentioned this pull request Oct 3, 2022
@oriabyi oriabyi mentioned this pull request Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔗 connectors DB, DW & third party connectors 📎 needs docs update A PR that requires updating the docs (https://github.com/chaos-genius/chaosgenius-docs)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ClickHouse support
2 participants