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

Test coverage for conditional DDL statements

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • Legacy/Testing

    Description

      We only have minimal test coverage of IF [NOT] EXISTS conditions for DDL statements. I think dtests are the right place to add those tests.

      We need to cover:

      • CREATE KEYSPACE IF NOT EXISTS
      • DROP KEYSPACE IF EXISTS
      • CREATE TABLE IF NOT EXISTS
      • DROP TABLE IF EXISTS
      • CREATE INDEX IF NOT EXISTS
      • DROP INDEX IF EXISTS
      • CREATE TYPE IF NOT EXISTS
      • DROP TYPE IF EXISTS

      The tests should also ensure that InvalidRequestExceptions are thrown if, for example, you try to drop an index from a keyspace that doesn't exist (regardless of whether IF EXISTS is used).

      Attachments

        Activity

          People

            rhatch Russ Hatch
            thobbs Tom Hobbs
            Russ Hatch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: