Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClickHouse driver used in plugin-server is outdated #11616

Closed
yakkomajuri opened this issue Sep 1, 2022 · 4 comments
Closed

ClickHouse driver used in plugin-server is outdated #11616

yakkomajuri opened this issue Sep 1, 2022 · 4 comments
Labels
bug Something isn't working right plugin-server stale

Comments

@yakkomajuri
Copy link
Contributor

yakkomajuri commented Sep 1, 2022

@macobo reported that adding comments to ClickHouse queries seems to cause the query to fail. This seems like the same issue as reported here: apla/node-clickhouse#54

Overall, the larger problem is that we use an unmaintained fork of an old unmaintained driver. This is a problem that is bound to get worse over time. Staying behind like this may lead us to obscure bugs in the future as well as missing out on features, performance improvements, and security updates.

Immediately I thought to migrate us to the more established driver these days: https://github.com/TimonKK/clickhouse and began the work to do so. However, the project is also a bit unpolished, and is lacking particularly on the typing front, which makes it more likely for us to have bugs.

I think here we have a few options:

  1. Fork https://github.com/TimonKK/clickhouse and:
    a. Just do what we need to do and effectively postpone this problem
    b. Choose to take this very seriously and chose to ship improvements and maintain the library in a way that puts it as the top driver choice in the Node ecosystem. This is probably a nice lil' thing we can do for the community but would require some effort on our end
  2. Contribute back to https://github.com/TimonKK/clickhouse and see if we can ship improvements to it fast enough
  3. Just use https://github.com/TimonKK/clickhouse as is
  4. Improve our current fork and maintain that more actively (options 1a and 1b also apply here)
  5. Do nothing at all

I think option 2 might be worth it and I'll try to get the ball rolling immediately. Maybe we consider 1b in the future...

@yakkomajuri yakkomajuri added bug Something isn't working right plugin-server labels Sep 1, 2022
@yakkomajuri
Copy link
Contributor Author

TimonKK/clickhouse#137

@yakkomajuri
Copy link
Contributor Author

Someone from ClickHouse told me they're working on an official Node driver, which is great. Will keep an eye out

@posthog-bot
Copy link
Contributor

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

@posthog-bot
Copy link
Contributor

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.

@posthog-bot posthog-bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right plugin-server stale
Projects
None yet
Development

No branches or pull requests

2 participants