Doesn't work with materialized view
sliontc opened this issue · 4 comments
sliontc commented
I'v tested JDBC engine with materialized view and found out that the view was not refreshed after data inserted into the jdbc table.
Steps:
- Create Table test ENGINE = JDBC('msjdbc_keyword', 'dbo', 'NewTable') // the datasource is MS SqlServer
- CREATE MATERIALIZED VIEW mv ENGINE = MergeTree AS SELECT * FROM test
- Insert into Keyword.dbo.NewTable (name) VALUES('oiljkl')
- Select * From mv
Result:
No data was returned.
So dose that mean the Materialized View is not supported for the JDBC engine?
zhicwu commented
Yes, ClickHouse does not support materialized view over remote table like the one backed by JDBC bridge.
sliontc commented
So any plan on this function?
Actually MySQL engine does support.
zhicwu commented
I'm not aware of any plan regarding this. Please feel free to submit a feature request in ClickHouse.
sliontc commented
Thanks.