-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
137585: explain: collapse large ExprContainers in verbose mode r=yuzefovich a=yuzefovich Previously, in `VERBOSE` mode (that is used for the stmt bundles) we would include all rows fully that are included in the ExprContainer (an example being a VALUES clause), with each column for each row taking up a separate line. In some cases this could lead to tens of thousands of lines in the output to be taken by a single operator. This seems a bit annoying, so this commit introduces a hard cap of 30 lines for each container. It uses the following heuristics: - the first and the last row are always shown, regardless of the width - if we have at least three rows and the full container would take up more than 30 lines, we will start omitting lines from the middle. All omitted lines will be replaced by a single one with `...` text. This should make reading `plan.txt` files easier overall. Inspired by bundle from [this](https://github.com/cockroachlabs/support/issues/3146) support tickeet. Epic: None Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
2 changed files
with
164 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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