mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
disable select_sequential_consistency when getting total rows and bytes in TablesBlockSource::generate
This commit is contained in:
parent
fa5cea7a0a
commit
bf0b0e2edc
@ -439,10 +439,12 @@ protected:
|
||||
res_columns[res_index++]->insertDefault();
|
||||
}
|
||||
|
||||
auto settings = context->getSettingsRef();
|
||||
settings.select_sequential_consistency = 0;
|
||||
if (columns_mask[src_index++])
|
||||
{
|
||||
assert(table != nullptr);
|
||||
auto total_rows = table->totalRows(context->getSettingsRef());
|
||||
auto total_rows = table->totalRows(settings);
|
||||
if (total_rows)
|
||||
res_columns[res_index++]->insert(*total_rows);
|
||||
else
|
||||
@ -452,7 +454,7 @@ protected:
|
||||
if (columns_mask[src_index++])
|
||||
{
|
||||
assert(table != nullptr);
|
||||
auto total_bytes = table->totalBytes(context->getSettingsRef());
|
||||
auto total_bytes = table->totalBytes(settings);
|
||||
if (total_bytes)
|
||||
res_columns[res_index++]->insert(*total_bytes);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user