Non-external preaggregations do not function when using ClickHouse Cloud #7438
Labels
driver:clickhouse
Issues related to the ClickHouse driver
enhancement
New feature proposal
help wanted
Community contributions are welcome.
pre-aggregations
Issues related to pre-aggregations
Describe the bug
When creating a pre-aggregation and not using cubestore, but using ClickHouse Cloud (ClickHouse's IaaS platform) to store the pre-aggregation the creation fails.
As a result, it is impossible to define internal preaggregations using ClickHouse when using ClickHouse Cloud.
To Reproduce
external: false
so that the pre-aggregation is stored in ClickHouse.CREATE AS SELECT
statements are not supported in ClickHouse Cloud. (See Compatibility Guide)Expected behavior
The pre-aggregation should be created in the ClickHouse Cloud database as expected.
Possible fixes
CREATE AS SELECT
statement can be replaced with two statements, one to create the table and another to populate it. However, this method only accepts a single query.BaseQuery
, it may require a more extensive refactor.The text was updated successfully, but these errors were encountered: