mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Revert "Make Schema inference works for CREATE AS SELECT"
This commit is contained in:
parent
a8c892f925
commit
d717372c6e
@ -1614,8 +1614,6 @@ BlockIO InterpreterCreateQuery::fillTableIfNeeded(const ASTCreateQuery & create)
|
||||
else
|
||||
insert->select = create.select->clone();
|
||||
|
||||
getContext()->getQueryContext()->setInsertionTable(insert->table_id);
|
||||
|
||||
return InterpreterInsertQuery(insert, getContext(),
|
||||
getContext()->getSettingsRef().insert_allow_materialized_columns).execute();
|
||||
}
|
||||
|
@ -407,6 +407,7 @@ BlockIO InterpreterInsertQuery::execute()
|
||||
|
||||
auto new_context = Context::createCopy(context);
|
||||
new_context->setSettings(new_settings);
|
||||
new_context->setInsertionTable(getContext()->getInsertionTable());
|
||||
|
||||
auto select_query_options = SelectQueryOptions(QueryProcessingStage::Complete, 1);
|
||||
|
||||
|
@ -1,7 +0,0 @@
|
||||
DROP TABLE IF EXISTS t;
|
||||
|
||||
CREATE TABLE t(n UInt32, s String) engine=Log AS SELECT * from generateRandom() limit 10;
|
||||
|
||||
select count() from t;
|
||||
|
||||
DROP TABLE t;
|
Loading…
Reference in New Issue
Block a user