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

Andres de la Peña edited comment on CASSANDRA-19245 at 1/4/24 5:10 PM:
-----------------------------------------------------------------------

I have updated [the PR for 5.0|https://github.com/apache/cassandra/pull/3013] 
to require Python 3.8-3.12 for cqlsh.

I have also updated CircleCI cqlsh tests to test the new min and max Python 
versions (3.8 and 3.12 instead of 3.7, 3.8 and 3.11). However, I think that to 
make this work we need to update the Docker images 
({{{}cassandra-testing-ubuntu2004-java11{}}} and 
{{{}cassandra-testing-ubuntu2004-java11-w-dependencies{}}}) in Docker Hub, 
since the current images don't include Python 3.12. I have updated the file 
[.build/ubuntu2004_test.docker|https://github.com/apache/cassandra/blob/07b06fbebe97f7828a9d329e1b9b04818826f05b/.build/docker/ubuntu2004_test.docker]
 to install Python 3.12 instead of 3.11. I don't know the procedure to update 
the images in Docker Hub. Maybe [~brandon.williams] knows about it?


was (Author: adelapena):
I have updated {{the PR for 5.0|https://github.com/apache/cassandra/pull/3013}} 
to require Python 3.8-3.12 for cqlsh.

I have also updated CircleCI cqlsh tests to test the new min and max Python 
versions (3.8 and 3.12 instead of 3.7, 3.8 and 3.11). However, I think that to 
make this work we need to update the Docker images 
({{{}cassandra-testing-ubuntu2004-java11{}}} and 
{{{}cassandra-testing-ubuntu2004-java11-w-dependencies{}}}) in Docker Hub, 
since the current images don't include Python 3.12. I have updated the file 
[.build/ubuntu2004_test.docker|https://github.com/apache/cassandra/blob/07b06fbebe97f7828a9d329e1b9b04818826f05b/.build/docker/ubuntu2004_test.docker]
 to install Python 3.12 instead of 3.11. I don't know the procedure to update 
the images in Docker Hub. Maybe [~brandon.williams] knows about it?

> Upgrade Python driver to 3.29.0
> -------------------------------
>
>                 Key: CASSANDRA-19245
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19245
>             Project: Cassandra
>          Issue Type: Task
>          Components: Feature/Vector Search, Tool/cqlsh
>            Reporter: Andres de la Peña
>            Assignee: Andres de la Peña
>            Priority: Normal
>             Fix For: 5.0-rc, 5.x
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The version of the Python driver that is used by cqlsh (3.28.0) doesn't 
> correctly support vectors of variable-width types. Wrong deserialization can 
> either fail with an exception or silently provide wrong results. For example:
> {code:java}
> cqlsh:k> CREATE TABLE t (k int PRIMARY KEY, v vector<varint, 2>);
> cqlsh:k> INSERT INTO t(k, v) VALUES (1, 
> [23452352356235654634567437463767365783768, 3]);
> cqlsh:k> SELECT * FROM t;
>  k | v
> ---+--------------------------
>  1 | [289729430, -1001073214]}}
> {code}
> The most recent driver at the moment (3.29.0) still doesn't support this kind 
> of vector, but it always fails with a proper message instead of dangerously 
> providing wrong results, thanks to 
> [PYTHON-1371|https://datastax-oss.atlassian.net/browse/PYTHON-1371].



--
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

Reply via email to