[ https://issues.apache.org/jira/browse/CASSANDRA-19118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799569#comment-17799569 ]
Ekaterina Dimitrova commented on CASSANDRA-19118: ------------------------------------------------- FYI, I just noticed that we are using also cassandra-test for the Python DTests. git blame shows: {code:java} commit cb42c1a8d563ffd5cfab5d5c0ba3690d337958a3 install driver & ccm as editable eggs {code} No ticket was mentioned. And it seems in Cassandra; this was just mimicked for the cqlsh tests in CASSANDRA-14951. [~djoshi] and Ariel Weisberg , do you have any idea as to why this is used? (I saw you worked on CASSANDRA-14951, so just checking in case you know more) > 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: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org