Name | Status | Type | Time(s) |
test_nameless_index | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:868: test not applicable to env. | 0.001 |
test_conditional_update | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3062: test not applicable to env. | 0.000 |
test_large_collection_errors | Skipped | 5.0 > 2.99
/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 2.99 | 0.925 |
test_composite_partition_key_validation | Success | | 59.940 |
test_limit_compact_table | Success | | 57.826 |
test_range_slice | Success | | 65.441 |
test_static_columns_cas | Success | | 62.871 |
test_token_range | Success | | 68.536 |
test_select_with_alias | Failure | TypeError: '<' not supported between instances of 'str' and 'int'
self = <abc.TestCQLNodes3RF3_Upgrade_current_5_0_x_To_indev_5_0_x object at 0x7f2aeb7d2700>
def test_select_with_alias(self):
cursor = self.prepare()
cursor.execute('CREATE TABLE users (id int PRIMARY KEY, name text)')
for is_upgraded, cursor in self.do_upgrade(cursor):
logger.debug("Querying {} node".format("upgraded" if is_upgraded else "old"))
cursor.execute("TRUNCATE users")
for id in range(0, 5):
cursor.execute("INSERT INTO users (id, name) VALUES ({}, 'name{}') USING TTL 10 AND TIMESTAMP 0".format(id, id))
# test aliasing count(*)
res = cursor.execute('SELECT count(*) AS user_count FROM users')
assert 'user_count' == res[0]._fields[0]
assert 5 == res[0].user_count
# test aliasing regular value
res = cursor.execute('SELECT name AS user_name FROM users WHERE id = 0')
assert 'user_name' == res[0]._fields[0]
assert 'name0' == res[0].user_name
# test aliasing writetime
res = cursor.execute('SELECT writeTime(name) AS name_writetime FROM users WHERE id = 0')
assert 'name_writetime' == res[0]._fields[0]
assert 0 == res[0].name_writetime
# test aliasing ttl
res = cursor.execute('SELECT ttl(name) AS name_ttl FROM users WHERE id = 0')
assert 'name_ttl' == res[0]._fields[0]
assert res[0].name_ttl, (9 in 10)
# test aliasing a regular function
res = cursor.execute('SELECT intAsBlob(id) AS id_blob FROM users WHERE id = 0')
assert 'id_blob' == res[0]._fields[0]
assert '\x00\x00\x00\x00' == res[0].id_blob.decode()
> logger.debug("Current node version is {}".format(self.get_node_version(is_upgraded)))
upgrade_tests/cql_tests.py:3276:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
upgrade_tests/upgrade_base.py:227: in get_node_version
return max(node_versions) if is_upgraded else min(node_versions)
/usr/lib/python3.8/distutils/version.py:64: in __gt__
c = self._cmp(other)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = LooseVersion ('5.0-rc1'), other = LooseVersion ('5.0.1')
def _cmp (self, other):
if isinstance(other, str):
other = LooseVersion(other)
if self.version == other.version:
return 0
> if self.version < other.version:
E TypeError: '<' not supported between instances of 'str' and 'int'
/usr/lib/python3.8/distutils/version.py:337: TypeError | 57.017 |
test_sparse_cf | Success | | 173.043 |
test_large_clustering_in | Success | | 66.737 |
test_end_of_component_uses_oecBound | Success | | 65.590 |
test_order_by_multikey | Success | | 136.749 |
test_cas_and_ttl | Success | | 64.888 |
test_range_tombstones | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1165: test not applicable to env. | 0.000 |
test_select_distinct | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3370: test not applicable to env. | 0.000 |
test_limit_sparse | Success | | 52.117 |
test_query_compact_tables_during_upgrade | Success | | 55.634 |
test_negative_timestamp | Success | | 49.635 |
test_reversed_compact | Success | | 52.135 |
test_in_order_by_without_selecting | Success | | 51.657 |
test_set | Success | | 54.721 |
test_internal_application_error_on_select | Success | | 52.922 |
test_exclusive_slice | Success | | 51.423 |
test_ticket_5230 | Success | | 51.174 |
test_select_map_key_multi_row | Skipped | awaiting CASSANDRA-7396
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5318: awaiting CASSANDRA-7396 | 0.000 |
test_boolean | Success | | 53.477 |
test_expanded_list_item_conditional | Success | | 58.440 |
test_range_query | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1448: test not applicable to env. | 0.001 |
test_user_types | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3562: test not applicable to env. | 0.001 |
test_with_equal_results_to_page_size | Success | | 58.983 |
test_with_order_by | Success | | 59.855 |
test_basic_paging | Success | | 61.478 |
test_data_change_impacting_earlier_page | Success | | 61.939 |
test_ttl_deletions | Success | | 73.150 |
test_failure_threshold_deletions | Success | | 64.692 |
test_sstableloader_compression_deflate_to_none | Skipped | 5.0.1 > 3.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.99 | 0.341 |
test_sstableloader_compression_none_to_none | Skipped | 5.0.1 > 4.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 4.99 | 0.326 |
test_dense_supercolumn_with_renames | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/thrift_upgrade_test.py:607: test not applicable to env. | 0.000 |
test_bootstrap_multidc | Success | | 608.724 |