Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Normal
Description
While trying to fix cqlsh dtests. I noticed quite a big bug. Not sure if this is a python driver bug or cqlsh?
Looks like the column names are now in alphabetical order but the PRIMARY KEY stays at the top.
cqlsh:foo> CREATE TABLE foo.users ( userid text PRIMARY KEY, firstname text, lastname text, age int); cqlsh:foo> DESC TABLE foo.users ; CREATE TABLE foo.users ( age int PRIMARY KEY, firstname text, lastname text, userid text ) WITH bloom_filter_fp_chance = 0.01 AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'} AND comment = '' AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy'} AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'} AND dclocal_read_repair_chance = 0.1 AND default_time_to_live = 0 AND gc_grace_seconds = 864000 AND max_index_interval = 2048 AND memtable_flush_period_in_ms = 0 AND min_index_interval = 128 AND read_repair_chance = 0.0 AND speculative_retry = '99.0PERCENTILE';