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

Support clickhouse #75

Open
mgilbir opened this issue May 1, 2021 · 4 comments
Open

Support clickhouse #75

mgilbir opened this issue May 1, 2021 · 4 comments

Comments

@mgilbir
Copy link

mgilbir commented May 1, 2021

Clickhouse is a columnar store that can be queried with SQL.

@knoguchi
Copy link

knoguchi commented Jul 22, 2021

It's interesting idea but Logica uses UDFs (user defined functions) which ClickHouse doesn't support at this moment.
The ClickHouse roadmap for 2021 hinted they are considering UDF as executable script over pipe. I think we can take advantage of this feature when it's ready.

https://presentations.clickhouse.tech/percona2021/#27

@EvgSkv
Copy link
Owner

EvgSkv commented Jul 22, 2021

Logica compiles to UDFs only predicates defined with --> notation. It's not a huge burgen on the user willing to use Clickhouse not to use such notation. Furthermore, it's not too hard to turn off UDF compilation based on the engine. So I don't think this limitation is substantial.

@knoguchi
Copy link

knoguchi commented Mar 1, 2022

Recent ClickHouse added UDF. We may be able to use the new functionality while I understand UDF is not a substantial limitation.

@EvgSkv
Copy link
Owner

EvgSkv commented Mar 1, 2022

Yeah, that's right, UDFs were not a limitation. I didn't work with Clickhouse, so I don't know what would be challenges.
Biggest challenge with full support of Postgres is that you can't use structs without defining their types. And Logic relies on records quite a bit. I don't know if this would be applicable to Clickhouse.
I'm happy to help with understanding Logica compiler to whomever wants to work on this :-)

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

No branches or pull requests

3 participants