You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2023/12/09 16:07:00 UTC
[jira] [Comment Edited] (CASSANDRA-19150) Make alignment of values in rows in CQLSH configurable.
[ https://issues.apache.org/jira/browse/CASSANDRA-19150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17794973#comment-17794973 ]
Maxim Muzafarov edited comment on CASSANDRA-19150 at 12/9/23 4:06 PM:
----------------------------------------------------------------------
[~bschoeni] Here is the example, as you can see in case we have sorted strings the left alignment looks much better than the right one.
_*LEFT*_
!Screenshot 2023-12-09 at 16.58.25.png|width=70%!
_*RIGHT*_
!Screenshot 2023-12-04 at 00.38.16.png|width=70%!
The draft PR that changes alignment:
https://github.com/apache/cassandra/pull/2980/files
was (Author: mmuzaf):
[~bschoeni] Here is the example, as you can see in case we have sorted strings the left alignment looks much better than the right one.
_*LEFT*_
!Screenshot 2023-12-09 at 16.58.25.png|width=70%!
_*RIGHT*_
!Screenshot 2023-12-04 at 00.38.16.png|width=70%!
> Make alignment of values in rows in CQLSH configurable.
> -------------------------------------------------------
>
> Key: CASSANDRA-19150
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19150
> Project: Cassandra
> Issue Type: Improvement
> Components: CQL/Interpreter
> Reporter: Stefan Miklosovic
> Priority: Normal
> Fix For: 5.x
>
> Attachments: Screenshot 2023-12-04 at 00.38.16.png, Screenshot 2023-12-09 at 16.58.25.png, signature.asc
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> We need to make this
> https://github.com/apache/cassandra/blob/trunk/pylib/cqlshlib/cqlshmain.py#L1101
> configurable so values in columns are either all on left or on right side of the column (basically change col.rjust to col.ljust).
> By default, it would be like it is now but there would be configuration property in cqlsh for that as well as a corresponding CQLSH command (optional), something like
> {code}
> ALIGNMENT LEFT|RIGHT
> {code}
> cc [~bschoeni]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org