querybook icon indicating copy to clipboard operation
querybook copied to clipboard

fix: added new "preformatted" transform option to properly display newlines in query results

Open jij1949 opened this issue 1 year ago • 1 comments

This also includes a new "multiline" column type which is assigned when a string contains newlines (\n). The initial use case for this feature was to be able to display the results of a "show create view" or "show create table" query properly without expanding the query results.

Screenshot 2023-09-14 at 11 03 44 AM

Before: Screenshot 2023-09-15 at 11 27 09 AM

After: Screenshot 2023-09-15 at 11 27 18 AM

"preformatted" CSS: https://github.com/pinterest/querybook/blob/master/querybook/webapp/stylesheets/_utilities.scss

It does the same thing as expanding the cell, but it does it automatically for results with newlines without requiring the user to select the option

jij1949 avatar Sep 14 '23 18:09 jij1949

lgtm. @czgu do you have any other concerns?

jczhong84 avatar Feb 25 '24 06:02 jczhong84