-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
Repro is with Zui commit e7febec.
What's shown in the video below all starts from the data returned by this query:
get "https://api.github.com/repos/brimdata/zed/pulls?state=all&sort=desc&per_page=3"
When viewed as the array of big nested records that it is, Zui displays the output in a summary format that shows where it's been truncated and provides hints to the user where they might want to expand it to look at nested values.
Problems becomes visible if we ask to render the output as a string via line mode.
get "https://api.github.com/repos/brimdata/zed/pulls?state=all&sort=desc&per_page=3" format line
Three problems now become visible:
- The column is crazy wide such that the text is very difficult to read. @jameskerr has mentioned that the default size of the column needs to be capped. I imagine a hint should also be shown to the user that they're seeing a truncated value.
- When we scroll horizontally so we're looking at the rightmost data in the column, when I try to highlight and copy/paste the string contents, what I highlighted does not line up with what comes out of my paste buffer.
- Despite the column being super wide at the current defaults, we do see the rightmost part of the value is indeed truncated. This is evident by the fact that we know it to be a string representation of valid JSON, and can be further validated if we tack on
| yield this[-50:]to see just the 50 rightmost characters in the string. This confirms that almost all the value was being rendered.
Repro.mp4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels