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

Importing directly from mysql using mysql-source and materialised view does not work #1993

Closed
inkrement opened this issue Mar 5, 2018 · 2 comments
Labels
comp-matview Materialized views question Question?

Comments

@inkrement
Copy link

Seems like queries like the following are not supported now (Error: Logical error while creating StorageMaterializedView. Could not retrieve table name from select query.).

CREATE MATERIALIZED VIEW table_name ENGINE=MergeTree(...) POPULATE AS
SELECT  * FROM mysql('host:3306', 'db', ...);

And one has to CREATE it first and the use the INPUT... SELECT Statement. Is support for CREATE MATERIALIZED VIEW on a mysql source planned?

@blinkov
Copy link
Contributor

blinkov commented Dec 3, 2018

Materialized views act more like triggers for inserts into table they are attached to, so it doesn't make sense to create one on top of table function call.

@blinkov blinkov added the question Question? label Dec 3, 2018
@filimonov filimonov added the comp-matview Materialized views label May 6, 2019
@filimonov
Copy link
Contributor

relates #5207 (about better exception)
#4006 (some ideas of implementation something similar).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-matview Materialized views question Question?
Projects
None yet
Development

No branches or pull requests

3 participants