clickhouse_fdw
clickhouse_fdw copied to clipboard
Push functions down to clickhouse layer?
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?
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.