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

Chris Lohfink commented on CASSANDRA-14457:
-------------------------------------------

updated in pull request and [unit 
tests|https://circleci.com/gh/clohfink/cassandra/150]

{code}
cqlsh> desc table system_views.compactions;

CREATE TABLE system_views.compactions (
    compaction_id uuid,
    "keyspace" text,
    progress_current bigint,
    progress_total bigint,
    progress_unit text,
    "table" text,
    task_type text,
    PRIMARY KEY ("keyspace", "table", compaction_id)
) WITH CLUSTERING ORDER BY ("table" ASC, compaction_id ASC)

cqlsh> select * from system_views.compactions;

 keyspace | table | compaction_id                        | progress_current | 
progress_total | progress_unit | task_type
----------+-------+--------------------------------------+------------------+----------------+---------------+------------
    basic | wide3 | 644e4790-5e4b-11e8-ba7a-7f580808cfbc |         22913336 |   
    79669692 |         bytes | compaction
    basic | wide3 | 67281b80-5e4b-11e8-ba7a-7f580808cfbc |          3819930 |   
     4639969 |         bytes | compaction
{code}

> Add a virtual table with current compactions
> --------------------------------------------
>
>                 Key: CASSANDRA-14457
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14457
>             Project: Cassandra
>          Issue Type: New Feature
>            Reporter: Chris Lohfink
>            Assignee: Chris Lohfink
>            Priority: Minor
>             Fix For: 4.x
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to