mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
remove hack for StorageDistributed & insert_sample_with_metadata
This commit is contained in:
parent
811b824b01
commit
b4b58b292f
@ -174,9 +174,6 @@ StorageDistributed::StorageDistributed(
|
|||||||
if (num_local_shards && remote_database == database_name && remote_table == table_name)
|
if (num_local_shards && remote_database == database_name && remote_table == table_name)
|
||||||
throw Exception("Distributed table " + table_name + " looks at itself", ErrorCodes::INFINITE_LOOP);
|
throw Exception("Distributed table " + table_name + " looks at itself", ErrorCodes::INFINITE_LOOP);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// HACK: disable metadata for StorageDistributed queries
|
|
||||||
const_cast<Context &>(context).getSettingsRef().insert_sample_with_metadata = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user