system.tables improvements (total_rows/total_bytes/storage_policy)#9919
Merged
alexey-milovidov merged 16 commits intoClickHouse:masterfrom Mar 30, 2020
Merged
system.tables improvements (total_rows/total_bytes/storage_policy)#9919alexey-milovidov merged 16 commits intoClickHouse:masterfrom
alexey-milovidov merged 16 commits intoClickHouse:masterfrom
Conversation
Member
|
Thank you! total rows in system.tables is very useful! |
alexey-milovidov
approved these changes
Mar 29, 2020
Member
Author
This is due to incorrect detection of |
alexey-milovidov
approved these changes
Mar 29, 2020
Member
|
It's fine :) |
Member
Author
|
Ok, PR description updated (to reflect this info at least). |
Member
Author
Hm, interesting. |
Member
|
Minor: |
Member
Author
Interesting, why it does not report the same for totalBytes and totalRows |
Fixes: 00341_squashing_insert_select2
Member
Author
|
So the following tests fails now, and AFAICS all of them are either flacky or fails in upstream/master too:
|
Closed
Member
|
A bug has been found: #40637 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Add
total_rows/total_bytesinto thesystem.tablestable.Detailed description / Documentation draft:
This patch-set contains the following changes:
storage_policyforDistributedtable engine, and hence showing it insystem.tables(follow up for Multiple disks/volumes for storing data for send in Distributed engine #8756)total_rowsfor*MergeTree/Buffer/Memoryinsystem.tablestotal_bytesfor*MergeTree/Buffer/Memoryinsystem.tablesThis differs from the
system.partssince it adds rows/bytes forBuffer/Memorytoo, which can be used to track memory usage (since the memory that is used forBuffer/Memoryrows does not displays anywhere AFAICS)Please note, that
total_rowsincludes rows of the underlying storage forBufferengine (since it usesIStorage::totalRows()which used forSELECT count() FROM tabletrivial queries), whiletotal_bytesdoes not (since otherwise the purpose of this column will be broken).Also some issues which was found during implementing this patch set has been fixed to:
optimize_trivial_count_querywithGROUP BY