mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
fix inserts into unknown table, ex. 'table function url(...)'
This commit is contained in:
parent
1d7f6c32a0
commit
53f1f4794d
@ -7,6 +7,9 @@ namespace DB
|
||||
{
|
||||
void TableMetadata::loadFromContext(const Context & context)
|
||||
{
|
||||
if (!context.isTableExist(database, table))
|
||||
return;
|
||||
|
||||
StoragePtr storage = context.getTable(database, table);
|
||||
const ColumnsDescription & table_columns = storage->getColumns();
|
||||
column_defaults = table_columns.defaults;
|
||||
|
Loading…
Reference in New Issue
Block a user