[
https://issues.apache.org/jira/browse/DRILL-3129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15087827#comment-15087827
]
Nick Dimiduk commented on DRILL-3129:
-------------------------------------
This is a know problem that impacts more and more products. Has this been
addressed in a later release of sqlline [~julianhyde]?
> truncation (from maxwidth) not indicated in output
> --------------------------------------------------
>
> Key: DRILL-3129
> URL: https://issues.apache.org/jira/browse/DRILL-3129
> Project: Apache Drill
> Issue Type: Bug
> Components: Client - CLI
> Reporter: Daniel Barclay (Drill)
> Fix For: Future
>
>
> In SQLLine, when the display of a row is truncated because of the maxwidth
> variable, there is no indication that the row was truncated.
> In particular, the row's rendering into text seems to always include the
> final "|" (vertical bar character), which makes the row look complete:
> {noformat}
> 0: jdbc:drill:zk=local> !set maxwidth 14
> 0: jdbc:drill:zk=local> !tables
> +------------+
> | TABLE_CAT |
> +------------+
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> +------------+
> 0: jdbc:drill:zk=local> !set maxwidth 15
> 0: jdbc:drill:zk=local> !tables
> +-------------+
> | TABLE_CAT |
> +-------------+
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> | DRILL |
> +-------------+
> 0: jdbc:drill:zk=local>
> {noformat}
> If the untruncated rendering of the whole row were simply truncated to the
> maximum width, then, at in many cases, the line wouldn't end with a "|" and
> it would be clear that the output was truncated.
> (It wouldn't be clear if the truncation were at a width at which every
> visible line had a "|" or had "|" followed by whitespace.
> One solution would be to end truncated lines with "+" or "..." (something
> other than "|").
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)