You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Caleb Rackliffe (Jira)" <ji...@apache.org> on 2025/12/09 20:29:00 UTC
[jira] [Updated] (CASSANDRA-19894) Vectors of counter as subtype do not work as expected
[ https://issues.apache.org/jira/browse/CASSANDRA-19894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Caleb Rackliffe updated CASSANDRA-19894:
----------------------------------------
Epic Link: CASSANDRA-21062
> Vectors of counter as subtype do not work as expected
> -----------------------------------------------------
>
> Key: CASSANDRA-19894
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19894
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Feature/Vector Search
> Reporter: Jane He
> Priority: Normal
> Fix For: 5.0.x, 5.x
>
>
> Here is the current behavior:
> {code:java}
> cqlsh:default> create table counter_table ( i int PRIMARY KEY, j vector<counter,2> );
> cqlsh:default> insert into counter_table (i, j) values (0, [0,0]);
> cqlsh:default> select * from counter_table;
> i | j
> ---+----------------------------------------
> 0 | [576460752303423488, 2251799813685248]
> (1 rows) {code}
> We may want vectors to handle `counter` subtype as other collections do, which is throwing an error:
> {code:java}
> cqlsh:cycling> create table upcoming_calendar ( year int, month int, events list<counter>, primary key (year, month));
> InvalidRequest: Error from server: code=2200 [Invalid query] message="Counters are not allowed inside collections: list<counter>"
> cqlsh:cycling> create table upcoming_calendar ( year int, month int, events map<int, counter>, primary key (year, month));
> InvalidRequest: Error from server: code=2200 [Invalid query] message="Counters are not allowed inside collections: map<int, counter>" {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org