Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-355

User types are dropped before tables using built-in schema creation

    XMLWordPrintable

    Details

    • Last commented by a User:
      true
    • Sprint:
      Ingalls GA

      Description

      CassandraSessionFactoryBean drops user types before tables are dropped. This causes errors like

      CassandraInvalidQueryException:Cannot drop user type example.person as it is still used by table example.employee; nested exception is com.datastax.driver.core.exceptions.InvalidQueryException: Cannot drop user type example.person as it is still used by table example.employee
      

      when types are referenced by tables or other user types.

      Schema creation ideally honors the dependency cycle so tables are deleted before user types and user types are deleted in the order of use (a user type uses another user type).

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            mp911de Mark Paluch
            Last updater:
            Oliver Drotbohm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 45 weeks, 5 days ago