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

Push functions down to clickhouse layer? #57

Open
mzealey opened this issue Nov 25, 2020 · 1 comment
Open

Push functions down to clickhouse layer? #57

mzealey opened this issue Nov 25, 2020 · 1 comment

Comments

@mzealey
Copy link

mzealey commented Nov 25, 2020

If I am interacting with DateTime64(x) types I typically need to either cast a date to them via toDateTime64() or cast them to a DateTime. However I cannot use the toDateTime64 or toDateTime functions in a query as postgres tries to parse them itself. Similarly with toStartOfInterval. From what I recall when trying to use clickhousedb_fdw it supported pushing at least some functions through to clickhouse (but doesn't support arrays, which is a bit of a show-stopper). Would it be possible to have some option in clickhouse_fdw to pass functions through to clickhouse?

@ildus
Copy link
Owner

ildus commented Nov 25, 2020

Only way to push down these functions is to add them in postgres side so they could pass the parser. I have added bunch of other functions, but if you need functions not from that list you will have to add them yourself, I can merge these from pull requests. You can look at #39 as an example.

@ildus ildus pinned this issue Nov 29, 2020
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

2 participants