| 125 | } |
| 126 | |
| 127 | std::optional<UInt64> CatalogAdaptor::queryRowCount(const StatsTableIdentifier & table_id) |
| 128 | { |
| 129 | auto storage = getStorageByTableId(table_id); |
| 130 | const auto * cnch_merge_tree = dynamic_cast<const StorageCnchMergeTree *>(storage.get()); |
| 131 | if (!cnch_merge_tree) |
| 132 | return std::nullopt; |
| 133 | return cnch_merge_tree->totalRows(context); |
| 134 | } |
| 135 | |
| 136 | ColumnDescVector CatalogAdaptor::getAllCollectableColumns(const StatsTableIdentifier & identifier) |
| 137 | { |
no test coverage detected