datastax / dsbulk

DataStax Bulk Loader (DSBulk) is an open-source, Apache-licensed, unified tool for loading into and unloading from Apache Cassandra(R), DataStax Astra and DataStax Enterprise (DSE)
Apache License 2.0
85 stars 30 forks source link

DSBulk count doesn't work on tables with just partition keys #473

Open msmygit opened 1 year ago

msmygit commented 1 year ago

Let's have a table like below:

CREATE TABLE ks_name.tbl_name (
    s_id bigint,
    c_id bigint,
    status boolean,
    uid_ts timestamp,
    uids text,
    PRIMARY KEY ((s_id, c_id))
);

There is only partition key. We're using version 1.10.0.

When we run ./dsbulk count -h <host> -u <user> -p <pswd> --stats.modes partitions --stats.numPartitions 20 on this table, we get an error as follows:

Cannot count partitions for table tbl_name: it has no clustering columns

┆Issue is synchronized with this Jira Task by Unito