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

Lukasz Antoniak commented on CASSANDRA-20979:
---------------------------------------------

I think C* first supported vectors of numeric (fixed-length) types, but then it 
was extended to any sub-type. In drivers, we also implemented support for 
literally any vector sub-type (e.g. vector of blobs) - 
[JAVA-3143|https://datastax-oss.atlassian.net/browse/JAVA-3143]. FWIW those 
changes test also vectors of text: 
[CASSANDRA-18613|https://issues.apache.org/jira/browse/CASSANDRA-18613] 
(https://github.com/apache/cassandra/commit/ddbc52990f90473db729e96f22d2914e51a957a6).

I agree that support for it is completely debatable, but currently it is fair 
to say that C* supports all vector subtypes.

{code:java}
cqlsh:test> create table vector_text_list(x int primary key, y 
vector<list<text>, 2>);
cqlsh:test> insert into vector_text_list(x, y) values(1, [['hello', 'world'], 
['a', 'b', 'c']]);
cqlsh:test>
{code}


> CQLSSTableWriter fails to serialize vector of date and time
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-20979
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20979
>             Project: Apache Cassandra
>          Issue Type: Bug
>            Reporter: Lukasz Antoniak
>            Assignee: Lukasz Antoniak
>            Priority: Low
>
> C* 5.x technically allows to create schema of vectors of variable types, e.g. 
> non-numeric. {{CQLSSTableWriter}} fails to serialize vectors of dates and 
> time.
> Stack trace:
> {code:java}
> org.apache.cassandra.exceptions.InvalidRequestException: Expected 4 byte long 
> for date (0)
>       at 
> org.apache.cassandra.cql3.statements.RequestValidations.invalidRequest(RequestValidations.java:358)
>       at 
> org.apache.cassandra.cql3.terms.MultiElements$Value.fromSerialized(MultiElements.java:73)
>       at org.apache.cassandra.cql3.terms.Marker.bind(Marker.java:85)
>       at 
> org.apache.cassandra.cql3.terms.Term$NonTerminal.bindAndGet(Term.java:304)
>       at 
> org.apache.cassandra.cql3.terms.Constants$Setter.execute(Constants.java:482)
>       at 
> org.apache.cassandra.cql3.statements.UpdateStatement.addUpdateForKey(UpdateStatement.java:126)
>       at 
> org.apache.cassandra.io.sstable.CQLSSTableWriter.rawAddRow(CQLSSTableWriter.java:311)
>       at 
> org.apache.cassandra.io.sstable.CQLSSTableWriter.addRow(CQLSSTableWriter.java:212)
>       at 
> org.apache.cassandra.io.sstable.CQLSSTableWriter.addRow(CQLSSTableWriter.java:182)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to