You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michał Michalski (JIRA)" <ji...@apache.org> on 2013/06/16 13:59:20 UTC

[jira] [Commented] (CASSANDRA-5645) Display PK values along the header when using EXPAND in cqlsh

    [ https://issues.apache.org/jira/browse/CASSANDRA-5645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13684630#comment-13684630 ] 

Michał Michalski commented on CASSANDRA-5645:
---------------------------------------------

After short investigation it seems that it could be very straightforward fix (getting and properly processing primary_key_components from CF layout) _if_ we had KS and CF name accessible via cursor object. Unluckily - it seems we hadn't, so it's necessary to add them there (which, in general, doesn't seem to be a bad idea to me) - CqlResult seems to be a good place to start. However, I'd appreciate any suggestions. Maybe I missed something in existing cursor implementation or is there better approach?
                
> Display PK values along the header when using EXPAND in cqlsh
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-5645
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5645
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Michał Michalski
>            Assignee: Michał Michalski
>            Priority: Minor
>
> Follow-up to CASSANDRA-5597 proposed by [~jjordan].
> Currently cqlsh run in vertical mode prints a header like this:
> {noformat}cqlsh> EXPAND on;
> Now printing expanded output
> cqlsh> SELECT * FROM system.schema_columnfamilies limit 1;
> @ Row 1
> -----------------------------+-----------------------------------------------------------------------------------------
>  keyspace_name               | system_auth
>  columnfamily_name           | users
>  bloom_filter_fp_chance      | 0.01
>  caching                     | KEYS_ONLY
>  column_aliases              | []
> (...){noformat}
> The idea is to make it print header this way:
> {noformat}cqlsh> EXPAND on;
> Now printing expanded output
> cqlsh> SELECT * FROM system.schema_columnfamilies limit 1;
> @ Row 1: system_auth, users
> -----------------------------+-----------------------------------------------------------------------------------------
>  keyspace_name               | system_auth
>  columnfamily_name           | users
>  bloom_filter_fp_chance      | 0.01
>  caching                     | KEYS_ONLY
>  column_aliases              | []
> (...){noformat}
> [~jjordan], please verify if it's what you requested for.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira