You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Bowen Song (Jira)" <ji...@apache.org> on 2021/09/23 10:47:00 UTC

[jira] [Created] (CASSANDRA-16987) CQLSH shell script will fail on Python 3.10

Bowen Song created CASSANDRA-16987:
--------------------------------------

             Summary: CQLSH shell script will fail on Python 3.10
                 Key: CASSANDRA-16987
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16987
             Project: Cassandra
          Issue Type: Improvement
          Components: Tool/cqlsh
            Reporter: Bowen Song
            Assignee: Bowen Song


The `is_supported_version()` function performs a lexicographical comparison between the Python version number in the format of `MAJOR.MINOR` with `3.6`. This works as expected if the Python version number is between `3.0` and `3.9` (inclusive), but will produce an unexpected result if the Python version number is `3.10` or above.

Recommended fix is to split the version number into two integers, `$version_major` and `$version_minor` and then compare them to `3` and `6` respectively.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org