[
https://issues.apache.org/jira/browse/CASSANDRA-19118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799555#comment-17799555
]
Andres de la Peña commented on CASSANDRA-19118:
-----------------------------------------------
Here are CI runs using [this
commit|https://github.com/apache/cassandra/pull/2957/commits/1ef9228bd317fb91320053d9904c57864f8a71cd]
to use Python driver 3.28.0 with pylib tests:
||Branch||CI||
|5.0|[j11|https://app.circleci.com/pipelines/github/adelapena/cassandra/3362/workflows/e047f048-a3da-454f-bd2d-469ebaa3f387]
[j17|https://app.circleci.com/pipelines/github/adelapena/cassandra/3362/workflows/dc768eff-7829-4c18-830a-b63a7fba9edd]|
|trunk|[j11|https://app.circleci.com/pipelines/github/adelapena/cassandra/3361/workflows/445e2d73-5553-43b5-a316-9d8686d8b907]
[j17|https://app.circleci.com/pipelines/github/adelapena/cassandra/3361/workflows/38929172-b4b0-4db5-bcf4-60ad9d6c836d]|
Not sure if we should have a separate ticket to upgrade the driver version. I'm
also unsure why that was using a "cassandra-test" branch instead of just a
specific driver version.
> Add support of vector type to COPY command
> ------------------------------------------
>
> Key: CASSANDRA-19118
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19118
> Project: Cassandra
> Issue Type: Bug
> Components: Tool/cqlsh
> Reporter: Szymon Miezal
> Assignee: Szymon Miezal
> Priority: Normal
> Fix For: 5.0-rc, 5.x
>
> Time Spent: 9h 40m
> Remaining Estimate: 0h
>
> Currently it's not possible to import rows with vector literals via {{COPY}}
> command.
> STR:
> * Create a table
> {code:sql}
> CREATE TABLE testcopyfrom (id text PRIMARY KEY, embedding_vector
> VECTOR<FLOAT, 6>
> {code}
> * Prepare csv file with sample data, for instance:
> {code:sql}
> 1,"[0.1, 0.2, 0.3, 0.4, 0.5, 0.6]"
> 2,"[-0.1, -0.2, -0.3, -0.4, -0.5, -0.6]" {code}
> * in cqlsh run
> {code:sql}
> COPY ks.testcopyfrom FROM data.csv
> {code}
> It will result in getting:
> {code:sql}
> TypeError: Received an argument of invalid type for column
> "embedding_vector". Expected: <class 'cassandra.cqltypes.VectorType(6)'>,
> Got: <class 'str'>; (required argument is not a float){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]