You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2013/05/13 16:35:17 UTC

[jira] [Commented] (CASSANDRA-5560) Improve DESC command for sets

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

Aleksey Yeschenko commented on CASSANDRA-5560:
----------------------------------------------

Something's wrong with your setup.

{noformat}
cqlsh:test> CREATE TABLE test (id int PRIMARY KEY, alist list<varchar>, aset set<int>, amap map<varint, boolean>);
cqlsh:test> DESC TABLE test;

CREATE TABLE test (
  id int PRIMARY KEY,
  alist list<text>,
  amap map<varint, boolean>,
  aset set<int>
) WITH
  bloom_filter_fp_chance=0.010000 AND
  caching='KEYS_ONLY' AND
  comment='' AND
  dclocal_read_repair_chance=0.000000 AND
  gc_grace_seconds=864000 AND
  read_repair_chance=0.100000 AND
  replicate_on_write='true' AND
  populate_io_cache_on_flush='false' AND
  compaction={'class': 'SizeTieredCompactionStrategy'};
{noformat}

As for that small request - with tab-completion you only have to type 'DESC t[tab] table_name' to get 'DESC TABLE table_name' (table_name can also be tab-completed).
                
> Improve DESC command for sets
> -----------------------------
>
>                 Key: CASSANDRA-5560
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5560
>             Project: Cassandra
>          Issue Type: Improvement
>    Affects Versions: 1.2.4
>            Reporter: Ofir P
>            Priority: Minor
>              Labels: describe, set
>
> When doing a Describe column family on a "table" with a "set" column, it doesn't show the type of the field in the set. 
> (I am just guessing it's probably also for map and list columns)
> Also a small request(I can open another ticket if you prefer), it is possible to make the "Column family" keywords optional:
> DESC[ribe] [Column Family] cf_name
> So it will be possible like sql to just Desc table_name. (without typing much redundant expected text)

--
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