This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cassandra-dtest.git
The following commit(s) were added to refs/heads/master by this push:
new a70e855 changed expectations around whether collection sub-fields of
a UDT will show up with the "frozen" modifier in versions that don't support
non-frozen UDTs
a70e855 is described below
commit a70e855b27d7e95dd2ca33245422b05c9c1949b6
Author: Caleb Rackliffe <[email protected]>
AuthorDate: Wed Jul 15 13:44:09 2020 -0500
changed expectations around whether collection sub-fields of a UDT will
show up with the "frozen" modifier in versions that don't support non-frozen
UDTs
Patch by Caleb Rackliffe, reviewed by brandonwilliams for
CASSANDRA-15948
---
cqlsh_tests/test_cqlsh.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/cqlsh_tests/test_cqlsh.py b/cqlsh_tests/test_cqlsh.py
index f261833..94b3adf 100644
--- a/cqlsh_tests/test_cqlsh.py
+++ b/cqlsh_tests/test_cqlsh.py
@@ -934,6 +934,16 @@ CREATE TYPE test.address_type (
self.execute(create_name_type_statement)
self.execute(create_address_type_statement)
+ # Support for non-frozen UDTs was added in CASSANDRA-7423, so the
output of DESCRIBE TYPE must account for this:
+ if self.cluster.version() < LooseVersion('3.6'):
+ create_address_type_statement = """
+ CREATE TYPE test.address_type (
+ name frozen<name_type>,
+ number int,
+ street text,
+ phones frozen<set<text>>
+ )"""
+
# DESCRIBE user defined types
self.execute(cql='DESCRIBE TYPE test.name_type',
expected_output='{};'.format(create_name_type_statement))
self.execute(cql='DESCRIBE TYPE test.address_type',
expected_output='{};'.format(create_address_type_statement))
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]