Better rendering of multiline strings in Pretty formats#59940
Better rendering of multiline strings in Pretty formats#59940alexey-milovidov merged 18 commits intoClickHouse:masterfrom
Conversation
|
This is an automated comment for commit 34a9ec3 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
yariks5s
left a comment
There was a problem hiding this comment.
Hello! Can you please also add tests to check how your changes work?
|
also, try to avoid cases like if (condition) {use instead: if (condition)
{ |
Okay, I'll do it later, but right now there's another problem. |
|
There are 2 tests where my solution gives a different answer Example of current answer: Example of my answer: Can I canonize the answer, and if so, how? |
|
@Volodyachan, the new behavior looks much better! Yes, you should update the
|
|
I advise to place Alternatives: |
38d770d to
d0dbb39
Compare
bdf099e to
eb9e2d7
Compare
yariks5s
left a comment
There was a problem hiding this comment.
LGTM, but would be good to enhance tests
9a6d7f0 to
276cabf
Compare
|
@yariks5s Do all tests have to be passed for merge? Because the dropped tests seem to have nothing to do with my code. If they shouldn't, you can merge? I don't have such opportunity) |
|
Yes, it looks like all required tests are passed, and others are not related. |
2176083 to
7857d01
Compare
Note, that it also started to use too much RAM, but I haven't look deeply |
Thanks for the analysis! Let's revert (I'll revert) |
|
I was thinking about fixing this, but your idea is "better" 😂 |
|
Actually I think we should do this at least under a setting |
|
@alexey-milovidov and BTW the perf tests shows the problem, timeout for queries from select_format.xml (likely it picked the correct query) |
|
In theory there is a setting: #63479 But 20x slower is too much, even with a setting. I'd rather revert and we can reintroduce once it's investigated than (myself) spent lots of time analyzing unfamiliar code |
|
BTW it looks like the functionality of pager is implemented with this |
|
Funny thing: Since more PRs where built on top of this, the reverts means reverting everything:
The good thing: Reverting the revert once the fix is done should be simple |
|
Confirmed. Before the revert: After the revert: Taking 2 seconds to show 10k lines is not good. |
|
@Algunenano, we can give it a chance by carefully rewriting this code. It could have some performance impact, e.g., 2..3x will be ok for Pretty format (with is not meant for large data exports). 20x is too much but it should be easily fixable. |
Yes, I'm open to somebody doing it, but in the meantime it's causing issues in CI and if somebody else doesn't act it will go into the next release. We can revert the revert with the fix |
|
@Algunenano Can you tell me how I can locally test the performance. There is no test.hits table. |
…multiline-strings-in-Pretty-formats"" This reverts commit 7bcef97.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Multiline strings with border preservation and column width change
Example console output:
UPD:
…in the position where the value cannot appearIt also works with line numbering