Name | Status | Type | Time(s) |
test_bootstrap_waits_for_streaming_to_finish | Success | | 105.779 |
test_only_pk | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1668: test not applicable to env. | 0.000 |
test_map_keys_indexing | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:3785: test not applicable to env. | 0.000 |
test_deletion | Success | | 60.072 |
test_non_eq_conditional_update | Success | | 59.342 |
test_noncomposite_static_cf | Success | | 64.242 |
test_multi_in | Success | | 65.419 |
test_key_index_with_reverse_clustering | Success | | 62.025 |
test_composite_index_with_pk | 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 0x7fec59f7fa30>
@pytest.mark.no_vnodes
def test_composite_index_with_pk(self):
cursor = self.prepare(ordered=True)
cursor.execute("""
CREATE TABLE blogs (
blog_id int,
time1 int,
time2 int,
author text,
content text,
PRIMARY KEY (blog_id, time1, time2)
)
""")
cursor.execute("CREATE INDEX ON blogs(author)")
for is_upgraded, cursor in self.do_upgrade(cursor):
logger.debug("Querying {} node".format("upgraded" if is_upgraded else "old"))
cursor.execute("TRUNCATE blogs")
req = "INSERT INTO blogs (blog_id, time1, time2, author, content) VALUES (%d, %d, %d, '%s', '%s')"
cursor.execute(req % (1, 0, 0, 'foo', 'bar1'))
cursor.execute(req % (1, 0, 1, 'foo', 'bar2'))
cursor.execute(req % (2, 1, 0, 'foo', 'baz'))
cursor.execute(req % (3, 0, 1, 'gux', 'qux'))
query = "SELECT blog_id, content FROM blogs WHERE author='foo'"
assert_all(cursor, query, [[1, 'bar1'], [1, 'bar2'], [2, 'baz']])
query = "SELECT blog_id, content FROM blogs WHERE time1 > 0 AND author='foo' ALLOW FILTERING"
assert_one(cursor, query, [2, 'baz'])
query = "SELECT blog_id, content FROM blogs WHERE time1 = 1 AND author='foo' ALLOW FILTERING"
assert_one(cursor, query, [2, 'baz'])
query = "SELECT blog_id, content FROM blogs WHERE time1 = 1 AND time2 = 0 AND author='foo' ALLOW FILTERING"
assert_one(cursor, query, [2, 'baz'])
query = "SELECT content FROM blogs WHERE time1 = 1 AND time2 = 1 AND author='foo' ALLOW FILTERING"
assert_none(cursor, query)
query = "SELECT content FROM blogs WHERE time1 = 1 AND time2 > 0 AND author='foo' ALLOW FILTERING"
assert_none(cursor, query)
assert_invalid(cursor, "SELECT content FROM blogs WHERE time2 >= 0 AND author='foo'")
# as discussed in CASSANDRA-8148, some queries that should have required ALLOW FILTERING
# in 2.0 have been fixed for 2.2
> if self.get_node_version(is_upgraded) < '2.2':
upgrade_tests/cql_tests.py:1818:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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 | 61.321 |
test_static_columns_with_2i | Success | | 70.445 |
test_timestamp_and_ttl | Success | | 169.170 |
test_nonpure_function_collection | Success | | 58.517 |
test_limit_ranges | Success | | 122.108 |
test_timeuuid | Success | | 68.451 |
test_SIM_assertion_error | Success | | 60.991 |
test_remove_range_slice | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:1958: test not applicable to env. | 0.000 |
test_tuple_notation | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:4217: test not applicable to env. | 0.000 |
test_range_tombstones_compaction | Success | | 65.999 |
test_select_distinct_with_deletions | Success | | 49.675 |
test_counters | Success | | 53.101 |
test_clustering_indexing | Success | | 52.432 |
test_select_map_key_single_row | Skipped | awaiting CASSANDRA-7396
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5231: awaiting CASSANDRA-7396 | 0.000 |
test_reversed_compact_multikey | Success | | 52.360 |
test_cas_and_compact | Success | | 53.140 |
test_map | Success | | 52.163 |
test_store_sets_with_if_not_exists | Success | | 51.182 |
test_in_clause_wide_rows | Success | | 54.603 |
test_conversion_functions | Success | | 53.460 |
test_select_set_key_multi_row | Skipped | awaiting CASSANDRA-7396
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:5347: awaiting CASSANDRA-7396 | 0.001 |
test_multiordering | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:2268: test not applicable to env. | 0.000 |
test_whole_set_conditional | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/cql_tests.py:4594: test not applicable to env. | 0.000 |
test_undefined_page_size_default | Skipped | test not applicable to env.
/home/cassandra/cassandra-dtest/upgrade_tests/paging_test.py:158: test not applicable to env. | 0.000 |
test_with_order_by_reversed | Success | | 54.137 |
test_basic_paging | Success | | 51.154 |
test_data_change_impacting_later_page | Success | | 53.837 |
test_ttl_deletions | Success | | 74.825 |
test13294 | Success | | 89.504 |
test_sstableloader_compression_deflate_to_snappy | Skipped | 5.0.1 > 3.99
/home/cassandra/cassandra-dtest/conftest.py:468: 5.0.1 > 3.99 | 0.326 |
test_sparse_supercolumn_with_renames | Skipped | 5.0 > 3.99
/home/cassandra/cassandra-dtest/conftest.py:449: 5.0 > 3.99 | 0.333 |
test_parallel_upgrade | Success | | 695.768 |