Skip to content
Permalink
Browse files
changed expectations around whether collection sub-fields of a UDT wi…
…ll 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
  • Loading branch information
maedhroz authored and driftx committed Jul 15, 2020
1 parent 16d4f1c commit a70e855b27d7e95dd2ca33245422b05c9c1949b6
Showing 1 changed file with 10 additions and 0 deletions.
@@ -934,6 +934,16 @@ def test_describe_types(self):
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))

0 comments on commit a70e855

Please sign in to comment.