Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19925

should show error when altering table with Non-frozen UDTs with nested non-frozen collections

    XMLWordPrintableJSON

Details

    Description

      Cassandra version: 5.0.0 GA

      Given this type

      CREATE TYPE testType
          (
              userids SET<UUID>
          );
      

      If I try to create this table

      CREATE TABLE test
      (
          id     INT PRIMARY KEY,
          myType testType
      );
      

      It shows an error: "Non-frozen UDTs with nested non-frozen collections are not supported"

      But if I create the table without the type and then alter the table:

      CREATE TABLE test
      (
          id     INT PRIMARY KEY
      );
      alter TABLE test add myType testType;
      

      It does not show that error, which it should.
      -------
      Also the output of `describe test;` shows that it successfully altered the table.

      Attachments

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              soheilrahsaz Soheil Rahsaz
              Stefan Miklosovic
              Maxim Muzafarov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m